Add a QtWebEngine C++ testbrowser

This commit is contained in:
Florian Bruhin 2016-11-02 07:17:14 +01:00
parent f2bf5cc442
commit cd97ef0047
5 changed files with 27 additions and 3 deletions

11
.gitignore vendored
View File

@ -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

View 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();
}

View File

@ -0,0 +1,6 @@
QT += core widgets webenginewidgets
TARGET = testbrowser
TEMPLATE = app
SOURCES += main.cpp