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

[Reg 6.4->6.5] Quick MenuItems do not appear greyed out when disabled under GTK

XMLWordPrintable

    • 21a070052 (dev), 4b7ad06dc (6.8), e2be39240 (6.7), aa0ef6e3d (tqtc/lts-6.5)

      As summary. Looking at qtdeclarative/src/quickcontrols/fusion/MenuItem.qml, the menu text colour uses "control.palette.text". On 6.4 this is "#bebebe" in the disabled state, but in 6.5 it's "#000000", i.e. the same as the active state. This is presumably something to do with the colours being derived from the GTK theme in 6.5+? I haven't checked styles other than Fusion but I would imagine they use the same palette colour.

      6.4.3:

      6.5.3:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow
      {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          menuBar: MenuBar
          {
              Menu
              {
                  title: "Menu"
                  MenuItem { text: "Item" }
                  MenuItem { text: "Disabled Item"; enabled: false }
                  MenuItem { text: "Item 2" }
              }
          }
      }
      

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

            mhqanbari MohammadHossein Qanbari
            timangus Tim Angus
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes