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

QComboBox stylesheet breaks it.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • Widgets: Style Sheets
    • None
    • 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

        1. Screenshot from 2021-07-01 15-52-55.png
          288 kB
          Rumen Bogdanovski
        2. qtreport.tgz
          3 kB
          Rumen Bogdanovski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes