How to customize drop-down of hovered QtComboBox in stylesheet
-
I'm working on making a style for my application in stylesheet. I 'm in trouble to write the rule of customizing the drop-down background when a QComboBox is hovered. It seems the selector 'QComboBox::drop-down:hover' only works when the drop-down is hovered, and 'QComboBox:hover::drop-down' is not a valid selector.
Does anyone have ideal on this?
-
I'm working on making a style for my application in stylesheet. I 'm in trouble to write the rule of customizing the drop-down background when a QComboBox is hovered. It seems the selector 'QComboBox::drop-down:hover' only works when the drop-down is hovered, and 'QComboBox:hover::drop-down' is not a valid selector.
Does anyone have ideal on this?
Not tested (just an idea)
Try:
QComboBox::hovered QAbstractItemView { YourStyle: here; }The drop down is a
QAbstractItemViewand it may (or may not) apply the style when set as above, if the comboBox is hovered. -
Not tested (just an idea)
Try:
QComboBox::hovered QAbstractItemView { YourStyle: here; }The drop down is a
QAbstractItemViewand it may (or may not) apply the style when set as above, if the comboBox is hovered.@Pl45m4
Sorry, let me make this question clear. The drop-down here means the drop-down button, not the drop down list. -
I'm working on making a style for my application in stylesheet. I 'm in trouble to write the rule of customizing the drop-down background when a QComboBox is hovered. It seems the selector 'QComboBox::drop-down:hover' only works when the drop-down is hovered, and 'QComboBox:hover::drop-down' is not a valid selector.
Does anyone have ideal on this?