[Solved] Both qml and c++
QML and Qt Quick
5
Posts
2
Posters
1.2k
Views
1
Watching
-
Hi. I have written an application with Qt 5.2 using both c++ and qml.
Now if I try to run it using QT 5.3.0 I obtain the error "QtQuick is not installed".
I see that the wizard for create a new QtQuick application is not the same as in the past. I suppose that QtQuick is very changed now.Does anybody can send me a simple application with both c++ and Quick 2.0?
-
Hi,
You can use "QQuickView":http://qt-project.org/doc/qt-5/qquickview.html instead of QQmlApplicationEngine in Qt 5.3.0 so that you wont need to change existing QML files.
@
QQuickView *view = new QQuickView;
view->setSource(QUrl("qrc:/main.qml"));
view->show();
@