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

QComboBox stylesheet breaks it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Platform/s:
      All

      Description

      When i apply the flowing qss to QComboBox the checked item becomes huge:

      typeComboBox->setStyleSheet("QComboBox::item:checked { font-weight: bold; }");

      or

      typeComboBox->setStyleSheet("QComboBox::item:checked { font-weight: italic; }");

       

      It affects all versions I have tested > 5.12

      I am sending a simple illustration program based on "Combo Widget Mapper Example" along with a screenshot.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            rumen Rumen Bogdanovski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes