forked from qt-creator/qt-creator
This patch adds a new variant of the good old ugly QmlApplicationViewer wizard. The new one is QQuickView based, and thus targets QtQuick2 Change-Id: I049223f644029e75bd15120b003c0ce4907a547a Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
14 lines
321 B
C++
14 lines
321 B
C++
#include <QtGui/QGuiApplication>
|
|
#include "qtquick2applicationviewer.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QtQuick2ApplicationViewer viewer;
|
|
viewer.setMainQmlFile(QStringLiteral("qml/app/qtquick20/main.qml")); // MAINQML
|
|
viewer.showExpanded();
|
|
|
|
return app.exec();
|
|
}
|