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

QCheckBox does not show check mark if indicator background set in style sheet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.2, 5.5.0
    • Widgets: Style Sheets
    • None
    • Windows 7

    Description

      The following stylesheet

      /* General */
      
      QWidget:enabled
      {
      	alternate-background-color: #5b5b5b;
      	background: #555;
      	color: #fff;
      }
      
      QWidget:!enabled
      {
      	alternate-background-color: #4a4a4a;
      	background: #555;
      	color: gray;
      }
      
      
      /* QCheckBox */
      
      QCheckBox:enabled
      {
      	color: white;
      }
      
      QCheckBox::indicator
      {
      	color: white;
      	background: #444;
      }
      

      hides QCheckBox' check marks.

      To reproduce, open the given ui-file with Qt Designer and do "Preview".

      Attachments

        1. Broken.PNG
          Broken.PNG
          9 kB
        2. CheckBoxIssue.ui
          2 kB
        3. NoStyle.PNG
          NoStyle.PNG
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            amasiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes