Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Obtaining reference to dynamically added QQuickItems

$
0
0
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] .

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images