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

Disabled QLabel color should be gray

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.7.2
    • None
    • Qt 4.7.2 on OSX 10.6, both Qt Carbon and Qt Cocoa

    Description

      Disabled QLabel's on OSX should use a mid gray, not a dark gray color. Attached are two screenshots of native applications that look correct, and a screenshot of QtCreator2.2RC that looks incorrect. The disabled label is not black, but also not mid gray. The dark gray that is being used currently is very close to black and not subdued enough. I'm currently working around this bug with the following:

      //use a more subdued disabled appearance for disabled labels
      QString styleSheet = "QLabel:disabled

      { color: #7F7F7F; }

      ";
      setStyleSheet(styleSheet);

      The problem with this approach is that if for a given label I for some bizarre reason I want the disabled color to be something other than 7F7F7F then I have to use a style sheet and not the QPalette to change the disabled window text color. Ideally this bug would be fixed in Qt's Mac style.

      Note I've noticed this with both Qt/Carbon and Qt/Cocoa.

      Attachments

        1. System Preferences_001.png
          System Preferences_001.png
          57 kB
        2. Qt Creator_001.png
          Qt Creator_001.png
          91 kB
        3. iTerm_001.png
          iTerm_001.png
          87 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            wstokes Will Stokes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes