1条回答 默认 最新
关注 样式语法请参考:
QComboBox { height: 25px; border-radius: 4px; border: 1px solid rgb(100, 100, 100); background: rgb(72, 72, 73); } QComboBox:enabled { color: rgb(175, 175, 175); } QComboBox:!enabled { color: rgb(155, 155, 155); } QComboBox:enabled:hover, QComboBox:enabled:focus { color: rgb(230, 230, 230); background: rgb(68, 69, 73); } QComboBox::drop-down { width: 20px; border: none; background: transparent; } QComboBox::drop-down:hover { background: rgba(255, 255, 255, 30); } QComboBox::down-arrow { image: url(:/Black/arrowBottom); } QComboBox::down-arrow:on { /**top: 1px;**/ } QComboBox QAbstractItemView { border: 1px solid rgb(100, 100, 100); background: rgb(68, 69, 73); outline: none; } QComboBox QAbstractItemView::item { height: 25px; color: rgb(175, 175, 175); } QComboBox QAbstractItemView::item:selected { background: rgba(255, 255, 255, 40); color: rgb(230, 230, 230); }
解决 1无用