Pass a dynamically created QML object to a C++ function as a QDeclarativeItem
QML and Qt Quick
2
Posts
1
Posters
869
Views
1
Watching
-
From what ive read so far, an object can be be passed as a QDeclarativeitem* using its ID. Can this be done for a dynamically created object that was created using something like:
component = Qt.createComponent("somefile.qml");
var obj = component.createObject(parent);Passing obj as the argument seems to result in a null pointer, any other ideas/tips?
Thanks