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

maOS Style ScrollBar does not align with native macOS behavior

    XMLWordPrintable

Details

    • macOS

    Description

      In macOS Style, the Scrollbar is always shown when not scrolling. This does not align with the native macOS behavior of hiding the scrollbar when not scrolling and showing it when the user interacts with the content, such as scrolling or hovering over it.

      Attached example reproduces the issue.

      import QtQuick
      import QtQuick.Controls.macOS
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
              id: frame
              clip: true
              width: 160
              height: 160
              border.color: "black"
              anchors.centerIn: parent
      
              Text {
                  id: content
                  text: "ABC"
                  font.pixelSize: 160
                  y: -vbar.position * height
              }
      
              ScrollBar {
                  id: vbar
                  hoverEnabled: true
                  active: hovered || pressed
                  orientation: Qt.Vertical
                  size: frame.height / content.height
                  anchors.top: parent.top
                  anchors.right: parent.right
                  anchors.bottom: parent.bottom
              }
          }
      }
      

      Attachments

        1. qtbug129811.zip
          2 kB
        2. settings.png
          settings.png
          473 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-129811
          # Subject Branch Project Status CR V

          Activity

            People

              mitch_curtis Mitch Curtis
              lysandra.sola Lysandra Sola
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change