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

Combobox don't get style update when closed by click outside it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.1
    • Widgets: Styles
    • None
    • Windows

    Description

      Steps to reproduce:

      You need a styled combobox with :open and :closed pseudostates.
      Click on the combobox body to open it (not on the collapse button).
      Combobox has a new style.
      Click outside combobox to close it.
      Style doesn't get updated.

       

          auto combo = new QComboBox();
          combo->setStyleSheet("QComboBox:open { border: 1px solid green; } QComboBox:closed { border: 1px solid red; }");
          combo->addItem("");
          combo->show();

      Attachments

        1. main.cpp
          0.7 kB
        2. QTBUG-113533.pro
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            anton_shelenkov Anton Shelenkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes