【发布时间】:2015-01-17 00:00:01
【问题描述】:
我知道如何在鼠标悬停时设置QComboBox 的样式:
pComboBox->setStyleSheet(pComboBox->styleSheet()+QString(" QComboBox:hover{css style here}"))
我还知道通过以下方式设置QComboBox 的子控件向下箭头的样式:
pComboBox->setStyleSheet(pComboBox->styleSheet()+QString(" QComboBox::down-arrow{css style here}"))
但是当鼠标通过QSS 悬停在QComboBox 上时,我不知道如何设置QComboBox 的子控件down-arrow。有人有想法吗?
【问题讨论】:
标签: qt qcombobox qtstylesheets