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

object reference between two files over thrid

$
0
0
The ids visible in ButtonBar are only the ids defined in ButtonBar or parents of ButtonBar. InfoView is a sibling in this case, so ids defined in InfoView will not be visible in ButtonBar. You need to forward it with properties. If InfoView’s id view3d is to be visible to ButtonBar, add a property to ButtonBar: property Item view3d This should also be exposed from InfoView so that main.qml will look like this: main.qml : Column {    InfoView { id : info }    ButtonBar { view3d: info.view3d } }

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images