This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Making Qt theme colors match KDE theme

Tags: None
(comma "," separated)
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
Qt apps have a slightly different color than all the KDE apps and they don't obey KDE's color schemes and don't match the borders nicely and look a bit out-of-place...

Image

Is there any way to make Qt use KDE's colors?

Thanks in advance!


Get problems solved faster - get reply notifications through Jabber!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Qt applications should use KDE Colours by default, it isn't an option. Have you used the Qt4 options? This could have overwritten your KDE settings. Try deleting ~/.config/Trolltech.conf


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
Nope, deleting Trolltech.conf doesn't help.


Get problems solved faster - get reply notifications through Jabber!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Just interested, which Qt application is not obeying the colour theme?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
All of them - the one I used in the screenshot was LyX, but the same happens with any other Non-KDE Qt application.


Get problems solved faster - get reply notifications through Jabber!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Very unusual. Have you every used the Qt4 configuration utility?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
You mean qtconfig? I do, to set correct fonts...


Get problems solved faster - get reply notifications through Jabber!
User avatar
Brandybuck
KDE Developer
Posts
203
Karma
0
OS
I get this problem sometimes too. For me it also includes displaying with wrong widget style as well. I haven't been able to nail down what causes it though.


Don't look back! (Or you might see the giants whose shoulders we stand on)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
qtconfig will do it. It damages settings. You need to use System Settings to reset the settings.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
bcooksley wrote:qtconfig will do it. It damages settings. You need to use System Settings to reset the settings.


So... how do I do that?


Get problems solved faster - get reply notifications through Jabber!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try reselecting Colours to begin with. Change theme then change back to Oxygen. Repeat the same with Style.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
Edit: It changed the theme of the running application, but after closing and reopening it again, it was back to the incorrect theme...
(I deleted Trolltech.conf before doing that.)

Last edited by Alec on Sat Jan 31, 2009 6:55 pm, edited 1 time in total.


Get problems solved faster - get reply notifications through Jabber!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Does this happen under a new user?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
mindfall
Registered Member
Posts
14
Karma
0
OS
I have had the same issue - pure Qt apps used an older/ different color scheme. When I deleted my .kde4 folder to celebrate the 4.2 release, the problem went away.
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
mindfall wrote:I have had the same issue - pure Qt apps used an older/ different color scheme. When I deleted my .kde4 folder to celebrate the 4.2 release, the problem went away.


Aha! So it's reading from my KDE 3's .kde folder! If I move it, Qt apps start normally. I'll have to play around with that a bit and figure out where exactly it's storing it.

Thanks mindfall!


Get problems solved faster - get reply notifications through Jabber!


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]