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