I know how to style QComboBox when mouse is hovering by doing:
pComboBox->setStyleSheet(pComboBox->styleSheet()+QString(" QComboBox:hover{css style here}"))
And I also know to style QComboBox's sub-control down-arrow's style via:
pComboBox->setStyleSheet(pComboBox->styleSheet()+QString(" QComboBox::down-arrow{css style here}"))
But I don't know how to style QComboBox's sub-control down-arrow when the mouse is hovering over the QComboBox via QSS. Does anybody have an idea?
I don't know is
QSSpowerful enough to do this(I think no), but witheventfilteryou can do this very easy:To use
eventFilteryou should also:and