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

QML tools cannot see QAccessibilityHints

XMLWordPrintable

      Qt 6.10 came with improved high-contrast support (https://www.qt.io/blog/high-contrast-mode-in-qt-6.10 ). Unfortunately, the new API is not compatible with QML tools:

       

      import QtQuick
      
      Window {
          width: 600
          height: 400
          visible: true
      
          property bool highContrast: Application.styleHints.accessibility.contrastPreference === Qt.HighContrast // Type "QAccessibilityHints" of property "accessibility" not found
      }
      

      We need something like QQmlLocale to expose QAccessibilityHints to QML

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes