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

Scrolling on ScrollView with GridView is incorrect after resize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.4.2, 5.5.0
    • Quick: Controls 1
    • None
    • Windows 8.1 Pro (mingw492_32)

    Description

      Steps to occur problem in the example appplication:
      1. Scroll down.
      2. Maximalize Window
      3. Restore Window down
      4. Scrolling is no more correct

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      import QtQuick.Window 2.2
      
      ApplicationWindow {
          title: qsTr("Example 1")
          width: 640
          height: 480
          visible: true
      
          toolBar: Text {
              text: "Description: Scroll to down. Maximalize window and restore down. Scrollbar is broken."
          }
      
          ScrollView {
              anchors.fill: parent
              flickableItem.interactive: true
      
              GridView {
                  id: gridView
      
                  anchors.fill: parent
                  cellWidth: 100
                  cellHeight: 100
                  model: 100
                  delegate: Rectangle {
                      width: gridView.cellWidth
                      height: gridView.cellHeight
                      border.color: "black"
                      color: "gray"
      
                      Text {
                          anchors.centerIn: parent
                          color: "black"
                          text: index
                      }
                  }
              }
          }
      }
      

      Attachments

        1. example1.zip
          2 kB
        2. example1.png
          example1.png
          15 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
            permotion88 Karol Polak
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes