Add minimal C++ testbrowser
This commit is contained in:
parent
1e740aa78b
commit
b9b2297d64
3
.gitignore
vendored
3
.gitignore
vendored
@ -31,3 +31,6 @@ __pycache__
|
|||||||
/.hypothesis
|
/.hypothesis
|
||||||
/prof
|
/prof
|
||||||
TODO
|
TODO
|
||||||
|
/scripts/testbrowser_cpp/Makefile
|
||||||
|
/scripts/testbrowser_cpp/main.o
|
||||||
|
/scripts/testbrowser_cpp/testbrowser
|
||||||
|
13
scripts/testbrowser_cpp/main.cpp
Normal file
13
scripts/testbrowser_cpp/main.cpp
Normal 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();
|
||||||
|
}
|
6
scripts/testbrowser_cpp/testbrowser.pro
Normal file
6
scripts/testbrowser_cpp/testbrowser.pro
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
QT += core widgets webkit webkitwidgets
|
||||||
|
|
||||||
|
TARGET = testbrowser
|
||||||
|
TEMPLATE = app
|
||||||
|
|
||||||
|
SOURCES += main.cpp
|
Loading…
Reference in New Issue
Block a user