去掉combobox下拉框中绘制的背景

This commit is contained in:
tanjing 2023-11-17 15:23:25 +08:00
parent 3ebb3d863d
commit fd853bf386
1 changed files with 0 additions and 1 deletions

View File

@ -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,