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

How to access an item inside a Tab

$
0
0
I have a TabView and I need to access the items inside the Tabs from outside the TabView. Let me clarify with an example below: TabView {     id: tabView     anchors.fill: parent     anchors.margins: 4     Tab {         title: "Tab 1"         ListView {             id: listView             ......         }     } }   Label {     text: listView.currentIndex } When executing the app, the Label doesn’t show anything and there is an error saying that listView isn’t defined. Is there anyway to access listView? So far I’m using a property defined inside Tab to set and get the currentIndex from ListView.

Viewing all articles
Browse latest Browse all 4972

Trending Articles