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

Scrollbar in Scrollview can not be hidden from Accessibility tree

    XMLWordPrintable

Details

    • Windows

    Description

      I'm using a ScrollView Qml element. There is no way to hide the ScrollBar from the accessibility tree.
      Even if you set the ScrollView Accessibility to ignored or overwrite the ScrollBar, you can not hide scrollbars from the accessibility tree.

      For an example, the following will not hide the ScrollBar from being narrated. 

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      ApplicationWindow {
          id: window
          width: 200
          height: 200
          visible: true
      
          ScrollView {
              anchors.fill: parent
      
              Label {
                  text: "ABC\nGHI"
                  font.pixelSize: 224
              }
      
              ScrollBar.vertical: ScrollBar {
                  Accessible.ignored: true
              }
      
              Accessible.ignored: true
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              anrocha André De La Rocha (Inactive)
              dayeung David Yeung
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes