Hi,
I have seen some examples to instantiate objects of QML types from C++ here
is an example:


 QDeclarativeEngine *engine = new QDeclarativeEngine;
 QDeclarativeComponent component(engine, QUrl::fromLocalFile("main.qml"));

 QObject *myObject = component.create();
 QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(myObject);




Instead of "main.qml" is there anyway to pass a reference to
a registered qml type (a one that I defined in QML extension plugin)?


Regards,
Jamil
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to