去掉combobox下拉框中绘制的背景
This commit is contained in:
parent
3ebb3d863d
commit
fd853bf386
|
@ -276,7 +276,6 @@ protected:
|
|||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override {
|
||||
QStyleOptionMenuItem opt = getStyleOption(option, index);
|
||||
painter->fillRect(option.rect, opt.palette.window());
|
||||
mCombo->style()->drawControl(QStyle::CE_MenuItem, &opt, painter, mCombo);
|
||||
}
|
||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
||||
|
|
Loading…
Reference in New Issue