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

Cannot call c++ function from qml

$
0
0
Well for me the easy way is this, but everybody has their own: // from memory, sorry for any errors QQuickView *view = new QQuickView();   MainWindowMC *mainMC = new MainWindowMC(); view->rootContext()->setCOntextProperty("myMain", mainMC);   view->setSource(QUrl::fromUserInput("myQml.qml")); view->show(); return app.exec();

Viewing all articles
Browse latest Browse all 4972

Trending Articles