Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.1
-
None
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();