- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    None
 - 
    5.13.0
 
- 
        
 - 
        4d8ee1b3493b79a6f1cd5200e6102711c0102c9e (qt/qtbase/dev)
 
QPalette::Data::resolve_mask contains only color role data (e.g. QPalette::WindowText), it means that all methods that use this mask don't work correct. For example:
1) QPalette::isBrushSet (documentation is also wrong):
QPalette p; p.setColor(QPalette::Active, QPalette::WindowText, Qt::red); qDebug() << p.isBrushSet(QPalette::Active, QPalette::WindowText) // -> true << p.isBrushSet(QPalette::Disabled, QPalette::WindowText) // -> true << p.isBrushSet(QPalette::Inactive, QPalette::WindowText); // -> true
2) QPalette::resolve also works wrong in the similar scenario.
- relates to
 - 
                    
QTCREATORBUG-21922 Add a debug helper for QPalette
-         
 - Reported
 
 -         
 - 
                    
QTBUG-92947 QPalette doesn't return the correct color when querying QPalette::PlaceholderText
-         
 - Reported
 
 -         
 - 
                    
QTBUG-93635 Reg->6.0: Windows vista style: placeholderText has wrong color
-         
 - Closed
 
 -