Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62258

TreeView is not a type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.1
    • Quick: Controls 2
    • 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?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            pandala �?� �?�
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes