diff --git a/.gitignore b/.gitignore index e1db4729d..d1826d402 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ __pycache__ /.hypothesis /prof TODO +/scripts/testbrowser_cpp/Makefile +/scripts/testbrowser_cpp/main.o +/scripts/testbrowser_cpp/testbrowser diff --git a/scripts/testbrowser_cpp/main.cpp b/scripts/testbrowser_cpp/main.cpp new file mode 100644 index 000000000..06c3d1a4f --- /dev/null +++ b/scripts/testbrowser_cpp/main.cpp @@ -0,0 +1,13 @@ +#include +#include +#include + + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + QWebView view; + view.load(QUrl(argv[1])); + view.show(); + return app.exec(); +} diff --git a/scripts/testbrowser_cpp/testbrowser.pro b/scripts/testbrowser_cpp/testbrowser.pro new file mode 100644 index 000000000..59f55ddfc --- /dev/null +++ b/scripts/testbrowser_cpp/testbrowser.pro @@ -0,0 +1,6 @@ +QT += core widgets webkit webkitwidgets + +TARGET = testbrowser +TEMPLATE = app + +SOURCES += main.cpp