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 }
}
↧









