16,203
社区成员
发帖
与我相关
我的任务
分享
#include <QStyledItemDelegate>
QStyledItemDelegate* itemDelegate = new QStyledItemDelegate();
ui->comboBox->setItemDelegate(itemDelegate);
QSS部分:
QComboBox QAbstractItemView{
xxxx
}
具体的可以去看QAbstractItemView的stylesheet