Add a QtWebEngine C++ testbrowser
This commit is contained in:
parent
f2bf5cc442
commit
cd97ef0047
11
.gitignore
vendored
11
.gitignore
vendored
@ -33,7 +33,12 @@ __pycache__
|
||||
/prof
|
||||
/venv
|
||||
TODO
|
||||
/scripts/testbrowser_cpp/Makefile
|
||||
/scripts/testbrowser_cpp/main.o
|
||||
/scripts/testbrowser_cpp/testbrowser
|
||||
/scripts/testbrowser_cpp/webkit/Makefile
|
||||
/scripts/testbrowser_cpp/webkit/main.o
|
||||
/scripts/testbrowser_cpp/webkit/testbrowser
|
||||
/scripts/testbrowser_cpp/webkit/.qmake.stash
|
||||
/scripts/testbrowser_cpp/webengine/Makefile
|
||||
/scripts/testbrowser_cpp/webengine/main.o
|
||||
/scripts/testbrowser_cpp/webengine/testbrowser
|
||||
/scripts/testbrowser_cpp/webengine/.qmake.stash
|
||||
/scripts/dev/pylint_checkers/qute_pylint.egg-info
|
||||
|
13
scripts/testbrowser_cpp/webengine/main.cpp
Normal file
13
scripts/testbrowser_cpp/webengine/main.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include <QApplication>
|
||||
#include <QWebEngineView>
|
||||
#include <QUrl>
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
QWebEngineView view;
|
||||
view.load(QUrl(argv[1]));
|
||||
view.show();
|
||||
return app.exec();
|
||||
}
|
6
scripts/testbrowser_cpp/webengine/testbrowser.pro
Normal file
6
scripts/testbrowser_cpp/webengine/testbrowser.pro
Normal file
@ -0,0 +1,6 @@
|
||||
QT += core widgets webenginewidgets
|
||||
|
||||
TARGET = testbrowser
|
||||
TEMPLATE = app
|
||||
|
||||
SOURCES += main.cpp
|
Loading…
Reference in New Issue
Block a user