Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.5
-
adafa5ee1f37739f33f6417f27c8ee7308aaad9c (qt/qtbase/dev) 93b25352568d4e8fdc1462143a6583808f9319d5 (qt/qtbase/6.1) 80fada2fef0edf184615f0d1cbe5e4df7513bbb6 (qt/qtbase/6.2) 53cdb31f293fdbe9667ce944f22343634f1866b1 (qt/tqtc-qtbase/5.15)
Description
When user tries to change the color on hover on a editable stylesheet, it does not work as expected.
QComboBox
{
height: 36px;
background-color: red;
border: 1px solid blue;
padding-left: 8px;
padding-right: 8px;
}
QComboBox:editable
{
background-color: orange;
}
QComboBox:editable:hover // This does not work as expected
{
background-color: green;
}
QComboBox:hover
{
background-color: yellow;
}
Please refer to the attached ui file. Even setting the stylesheet for QLineEdit does not work.
Only workaround is to fetch the QLineEdit instance from comboBox and set the stylesheet to it, but it does not work when mouse is hovered on dropdown icon of ComboBox