qml: Add the skeleton for the example

Doesn't do much yet, but has background.
This commit is contained in:
Sergio Martins
2020-07-27 17:59:52 +01:00
parent 2895de3ef5
commit 88e10ffb31
5 changed files with 70 additions and 3 deletions

15
examples/qtquick/main.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <QQuickView>
#include <QGuiApplication>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQuickView view;
view.setSource(QUrl("qrc:/main.qml"));
view.resize(1000, 800);
view.show();
view.setResizeMode(QQuickView::SizeRootObjectToView);
return app.exec();
}