Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

problem interacting with qml object from c++, qt5

$
0
0
// Using QQuickView QQuickView view; view.setSource(QUrl::fromLocalFile("MyItem.qml")); view.show(); QObject *object = view.rootObject(); i’m copypasting this code from (doc [qt-project.org] but it’s not working, QTCreator print error: “cannot convert ‘QQuickItem*’ to ‘QObject*’ in initialization” Why?

Viewing all articles
Browse latest Browse all 4972

Trending Articles