Hello,

Is there an analogue of QQuickView::rootItem() for QQml(Application)Engine?

The shortest way I could think of involves jumping through a few hoops,
e.g.:

    QQmlApplicationEngine engine;
    // ...
    auto window = engine.rootObjects().first();
    auto aQuickItem = qobject_cast<QQuickItem*>(window->children().first());
    auto rootItem = aQuickItem->parentItem();


Regards,
Sze-Howe
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to