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

[SOLVED] Opening QML file from C++

$
0
0
Hello Qt community. I’m trying to open QML file from C++ with this code: QQmlEngine *engine = new QQmlEngine; QQmlComponent component(engine, QUrl::fromLocalFile("form.qml")); QObject *myObject = component.create(); QQuickItem *item = qobject_cast<QQuickItem *>(myObject); But window don’t show.

Viewing all articles
Browse latest Browse all 4972

Trending Articles