Add minimal C++ testbrowser

This commit is contained in:
Florian Bruhin 2016-04-05 06:56:57 +02:00
parent 1e740aa78b
commit b9b2297d64
3 changed files with 22 additions and 0 deletions

3
.gitignore vendored
View File

@ -31,3 +31,6 @@ __pycache__
/.hypothesis
/prof
TODO
/scripts/testbrowser_cpp/Makefile
/scripts/testbrowser_cpp/main.o
/scripts/testbrowser_cpp/testbrowser

View File

@ -0,0 +1,13 @@
#include <QApplication>
#include <QWebView>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWebView view;
view.load(QUrl(argv[1]));
view.show();
return app.exec();
}

View File

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