-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.11.1
-
None
-
OS: Window 7
First, items inside a Tab can not be accessed from the outside, such an issue has already appeared in this site. Then I try to use the function of getTab() to get the current tab, but I failed.
The code as follows:
Window {
TabView {
id: view
Tab {
active: true
Rectangle {
id: rec1
width: 200; height: 100;
color: "red"
}
}
}
Component.onCompleted: {
console.log(view.currentIndex)
console.log(view.getTab(view.currentIndex))
}
}
which I got :
qml: 0 qml: undefined