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