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

Incorrect accessibleRole for 'Switch' QML

    XMLWordPrintable

Details

    • 761df2ced0081905b4238c66783bb276f504cf3d (qt/qtquickcontrols2/5.12)

    Description

      QMl ‘Switch’ has accessibleRole as ‘button’ whereas it should be ‘Checkbox’.

      I checked the underlying code and found that as ‘Switch’ is inheriting this value from QAbstractButton, whereas in checkbox, accessibleRole is overridden to ‘checkbox’.

      I think ‘Switch’ should also have a ‘checkbox’ role as it is a togglable button.

      Attachments

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

        Activity

          People

            frederik Frederik Gladhorn
            shmittal Shveta Mittal (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes