qml: Add the skeleton for the example
Doesn't do much yet, but has background.
This commit is contained in:
15
examples/qtquick/main.cpp
Normal file
15
examples/qtquick/main.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user