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

Explicitly setting ScrollIndicator's active property doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.3, 6.8.3, 6.9.0
    • Quick: Controls 2
    • None
    • All

    Description

      Explicitly setting ScrollIndicator's active property doesn't work as expected.

      Code sample:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
      
          ListView {
              anchors.fill: parent
              model: 10
              delegate: Rectangle {
                  width: ListView.view.width
                  height: 100
                  color: Qt.rgba(Math.random(),Math.random(), Math.random(), 1.0)
              }
      
              ScrollIndicator.vertical: ScrollIndicator {
                  active: true // <--- we set it to true as want to see the scroll indicator all the time
              }
          }
      }
      

      Steps to reproduce:
      1. Run sample code
      2. Observe the scroll indicator - it's visible, since we explicitly set active property to true - OK
      3. Try to scroll list view with a mouse wheel or touchpad
      4. Observe the scroll indicator - it's hidden, despite we explicitly set active property to true - BUG

      Attachments

        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
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes