system-settings color change vs Qt (non-kde) apps

Albert Astals Cid aacid at kde.org
Tue Jan 4 20:05:13 GMT 2011


A Dimarts, 4 de gener de 2011, Hugo Pereira Da Costa va escriure:
> Hello all,
> 
> Here, when I change the color scheme in kde's system-settings, the change
> is propagated properly to KDE apps, but not to Qt (non-kde) applications
> (like, for instance QGit, and other applications of mine). I believe this
> is due to differences between QApplication and KApplication (correct ?)
> 
> Experimenting locally, I found out that if in oxygen's style I connect to
> kglobalsettings changes, and explicitely call
> 
>         KGlobal::config()->reparseConfiguration();
> 
> there, then the above gets fixed. I believe however that this is not quite
> acceptable, since obviously reparseConfiguration would be called twice for
> kde apps (correct ?).
> 
> So. Does anyone have advice/insight on what we can do about it ? e.g.:
> 
> - leave the situation as it is now ? (meaning that whenever you change
> color scheme you have to restart every Qt app you have, to get the right
> color changes, which I believe is unfortunate.
> 
> - hack oxygen (in a way similar/better than the above, if possible)
> 
> - leave that upstream to Qt (?)

I'd say this should be added to kdebase/workspace/qguiplatformplugin_kde

Albert

> 
> 
> 
> 
> Thanks in advance,
> 
> Hugo




More information about the kde-core-devel mailing list