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

QML Checkbox color (enabled/disabled) wrong on win11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • Quick: Controls 1
    • None
    • Windows 11
    • Windows

      Surely a minor bug, but odd nevertheless:

      When running the attached qml script "MainScreen.qml" with qmlscene.exe,
      the enabled checkbox on the left is gray,
      and the disabled checkbox on the right is white.
      See QmlCheckboxWin11_nok.png.
      The other way round would be expected (as gray usually indicates disabled widgets).

      Funny thing:

      • On Windows 10, the colors are correct.
      • If you remove this line "import QtQuick.Controls", the colors are correct (see QmlCheckboxWin11_ok.png) 

      (I did not find "Quick Controls Basic" in the Components Combobox, not sure if "Controls 1" is correct.)

        1. MainScreen.qml
          0.5 kB
        2. QmlCheckboxWin11_nok.png
          QmlCheckboxWin11_nok.png
          2 kB
        3. QmlCheckboxWin11_ok.png
          QmlCheckboxWin11_ok.png
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            morteza.jamshidi Morteza Jamshidi
            daniel_frey Daniel Frey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes