Well, simple example using QObject *graphContainerObject :
...
QObject *graphContainerObject = graphContainer.create();
QObject *rect = graphContainerObject->findChild<QObject*>("rectangle");
...
Your QML-Object should have set the objectName property to “rectangle”
Rectangle {
anchors.fill: parent
objectName: "rectangle"
}
So basically i don’t see a problem there expept for that i dont know what the m_GraphContainer is.
For further informations you could check out this [developer.ubuntu.com] .
↧








