[Development] QPalette::Mid neglected?

Rafael Roquetto rafael.roquetto at kdab.com
Wed Jan 15 21:16:12 CET 2014


Hello everyone,

I noticed that one program that I run displays a lot of black squares when it
shouldn't - I traced the problem down to the fact that, at least on this env
- KDE4 + Qt5 dev branch HEAD - QPalette::mid() returns QBrush(QColor(ARGB 1,
  0, 0, 0) , SolidPattern ), or black.

It seems that nowhere in the Qt source code the value of QPalette::Mid is being
set, apart from QWindowsTheme. In my case, the relevant class is QKdeTheme,
which does set a value for QPalette::Mid but only for the QPalette::Disabled
ColorGroup. Therefore, for the Active color group the value is defaulting to
black.

Is this intended behavior or should this be fixed? For more context, see
QKdeThemePrivate::readKdeSystemPalette() inside qgenericunixthemes.cpp.

Thanks for reading,
Rafael

-- 
Rafael Roquetto | rafael.roquetto at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4861 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140115/e355ca89/attachment.bin>


More information about the Development mailing list