diff --git a/source/attributeTableDelegate.cpp b/source/attributeTableDelegate.cpp index 37aa188..87baf7a 100644 --- a/source/attributeTableDelegate.cpp +++ b/source/attributeTableDelegate.cpp @@ -147,7 +147,7 @@ void AttributeTableDelegate::paint(QPainter* painter, const QStyleOptionViewItem if(/*index.column() == 0 || */index.data(Qt::UserRole + AttributeEidt::EditStatus).toBool()) { opt.font.setBold(true); - //opt.palette.setColor(QPalette::Text, Qt::red); + opt.palette.setColor(QPalette::Text, Qt::red); } //处理被选择时的背景色,注意:如果qss中有设置,会覆盖此处逻辑