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

ListView in a SwipeView scroll problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.8.0, 5.12.1
    • Quick: Controls 2
    • None
    • OS X 10.11
    • macOS

    Description

      If I have ListView as page of SwipeView, TabBar stops working after scrolling the ListView.

      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Scroll listview and click to second tab")
      
          SwipeView {
              id: swipeView
              anchors.fill: parent
              currentIndex: tabBar.currentIndex
      
              Page {
                  ListView {
                      model: 12
                      anchors.fill: parent
                      delegate: Rectangle {
                          height: 30
                          width: 640
                          color: index % 2 ? "#ddd" : "sky blue"
                      }
                  }
              }
      
              Page {
                  Label {
                      text: qsTr("Second page")
                      anchors.centerIn: parent
                  }
              }
          }
      
          footer: TabBar {
              id: tabBar
              currentIndex: swipeView.currentIndex
              TabButton {
                  text: qsTr("First")
              }
              TabButton {
                  text: qsTr("Second")
              }
          }
      }
      

      Minimal example and video demonstration attached

      Attachments

        1. QtSwipeViewBug.mov
          1.79 MB
        2. SwipeViewBug.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            zifix Yakov Eremin
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes