p.s. Might be worth mentioning, in Qt4 (Qt Quick 1) QtCreator added qmlapplicationviewer to start up the gui, with
@QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());@
put into main.cpp.
QtQuick.Controls 1.0 needs QtQuick 2, which in turn needs qtquick2applicationviewer rather than qmlapplicationviewer, e.g.
@QScopedPointer<QtQuick2ApplicationViewer> viewer(new QtQuick2ApplicationViewer());@
But this actually conflicts with ApplicationWindow. Both ApplicationWindow and QtQuick2ApplicationViewer create a root window, so there is conflict over which window is to be used. Instead, to use ApplicationWindow, in main.cpp we should use QQmlApplicationEngine instead of QtQuick2ApplicationViewer, e.g.
@QScopedPointer<QQmlApplicationEngine> engine(new QQmlApplicationEngine());@
followed by
@ engine->load(QUrl("qrc:/qml/main.qml"));
QObject *topLevel = engine->rootObjects().value(0);
QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel);
window->show();@
instead of
@viewer->setSource(QUrl("qrc:/qml/main.qml"));
viewer->show();@