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.roque...@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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to