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

Merge pull request !20 from tanjing_nile
This commit is contained in:
hanpinlong 2023-11-17 07:35:37 +00:00 committed by Gitee
commit f7a3413269
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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,