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

StyleSheets: Incorrect display of custom style to QComboBox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.6.0
    • 4.5.0
    • Widgets: Style Sheets
    • None
    • e1a81c96790bee72ee4fbd2b0c4a7b48078c4ec1

      Created a form and add a QComboBox.

      Use this styleSheet

      QComboBox QListView {
      selection-background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:0, y2:0, stop:0 rgba(104, 30, 30, 255), stop:1 rgba(198, 0, 0, 255));
      }
      QComboBox {
      border: 2px solid grey;
      border-radius: 3px;
      padding: 1px 18px 1px 3px;
      min-width: 6em;
      }

      Open and close the list in the combo box.
      The text in the input field is displayed in different colors while the list is shown.
      Sometimes the text is black and sometimes it is gray.

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes