-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.9.1
-
None
I created a new Qt Quick Controls 2 Application project.Then I added TreeView component as Page's children in SwipeView,just like below:
SwipeView {
id: swipeView
anchors.fill: parent
currentIndex: tabBar.currentIndex
Page {
TreeView{
}
}
Page {
Label {
text: qsTr("Second page")
anchors.centerIn: parent
}
}
}
According to Qt's document about TreeView,the main.qml already had import statement to use TreeView,but when I ran this project,it printed "TreeView is not a type".How should I do with this situation?