Hello
How to create a dynamic QML components from within C++?
I have tried this but it fails (below QObject pointer is Null):
QUrl t = QUrl(QStringLiteral("qrc:/path1/path11/path111/file.qml"));
QQmlComponent component(m_qmlEngine, t);
QObject *object = component.create(); // why object is NULL?
Is there another way to create a QML object from a .qml file?
Thanks
Mut
Bookmarks