There is no way around it - you can't style Qt4 apps with Qt3 styles without rewriting them for Qt4.
There is no way around it - you can't style Qt4 apps with Qt3 styles without rewriting them for Qt4.
Ok, my question is the other way round: is there a way to not force KDE3 settings on Qt4 apps? Why I'm asking is: I'm (still) using KDE3 (with the Baghira style) and some Qt4 apps. Those apps seem to take up the color theme from the KDE3 style, which in the end doesn't look very good on Qt4 because, frankly, this theme is waaaay too configurable, and I (of course) use this to an excessive amount to make it look like my preferred GUIBut with any other style the color choice looks very odd.
I would expect other KDE3 styles to adopt these color settings, but I was really surprised that Qt4 also adopts them. Now, admittedly, this might be a positive thing for most people, but for my use case it results in some plain ugly GUIs... So I'm wondering, is there a way to keep Qt4 from using KDE3's style settings (be it colors or whatever...)?
I'm gonna answer myself here. I finally discovered QApplication::setDesktopSettingsAware, which probably gets as close to solve the above mentioned issue as possible. It prevents Qt from using any desktop specific settings, be it fonts, colors or the like.
The one thing to take notice of is that you have to set this before creating a QApplication instance, changing this setting afterwards doesn't have any effect.
Bookmarks