Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.1
-
None
-
631f68c97280436b4d241865d9a1d33fc9444691
Description
If you force transparency of label by overwriting delegate of item view as follow :
bool item::customData(
const QString& fieldName,
int role,
QVariant& data
) {
if (fieldName == NAME_COLUMN) {
if( role == Qt::ForegroundRole) {
QColor c = qApp->palette().brush(QPalette::Text).color() ;
c.setAlpha(0) ;
data = QBrush(c);
return true;
} else if( role == Qt::BackgroundRole) {
QColor c = qApp->palette().brush(QPalette::Background).color() ;
c.setAlpha(0) ;
data = QBrush(c);
return true;
...
this change affect the transparency of checkmark.
Attachments
For Gerrit Dashboard: QTBUG-65737 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216779,2 | QFusionStyle: Set alpha on color before creating pen | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |