You are not logged in.

#1 2009-05-06 05:41:26

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

What's the correct way to make QT4/KDE4 apps use my GTK theme?

I tried going to Computer -> System Settings -> Appearance and setting the widget style to GTK+ (instead of the default oxygen) but my computer crashes.  If I load xterm from kdm and try to run kwin for example, I get the following error message.

"QGtkStyle cannot be used together with the GTK_Qt engine."

and then it segfaults.

http://wiki.archlinux.org/index.php/Uni … d_GTK_apps 
This page says to use QGtkStyle, which comes bundled with QT 4.5.  I assume that is what I do with the previous procedure, but obviously that is giving me problems.  Any ideas?

Fyi, this just started happening tonight when I rebooted my computer.  I've had it set to GTK+ for a while and my KDE apps rendered with my GTK theme, but when I rebooted it segfaulted loading the desktop and I haven't been able to get it to work since.  Any ideas?

Offline

#2 2009-05-06 10:18:40

jbache
Member
Registered: 2008-05-28
Posts: 7

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

Make sure your GTK theme is not "Qt" or something similar.

Offline

#3 2009-05-06 14:40:40

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

It isn't.  My GTK theme is a theme I downloaded from gnome-look.  I thought maybe I was caught in some kind of "make qt look like gtk, but make gtk look like qt" loop, but I can't find one if I am.

Edit: Also, what file do I delete to reset my qt or kde4 theme?  Because if I try to get GTK+ to work and it segfaults, I can't load kde4 until I delete the .kde4 folder in my own dir, and then I lose all of my settings.

Last edited by The Orange Peanut (2009-05-06 14:55:32)

Offline

#4 2009-05-06 16:16:21

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

or simply install and use:
- gtk-qt-engine
- qtcurve


wink

Last edited by quarkup (2009-05-06 16:18:11)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#5 2009-05-06 19:35:25

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

qtcurve is installed by default on QT 4.5 (which I have thanks to kdemod).  I don't have gtk-qt-engine installed, so I don't understand where the conflict is coming from?  I'm pretty sure when I select GTK+ in my KDE appearance menu I am using the qtcurve.  Any ideas?

Offline

#6 2009-05-07 08:58:06

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

Maybe you should try typing "qtconfig" in the terminal. You can choose GTK+ then. Works for me. I didn't install anything special except the QT applications I use (including QTcreator), so I think "qtconfig" should be available when you have QT installed.

Also look out for a ".kde" directory (?) in your home folder (even when you don't use KDE it might be that you have it). It could be that you've got some contradictory settings in some configuration files that are read when QT apps are started. I'm not sure on this one, though.

Offline

#7 2009-05-09 12:12:26

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

Uninstall gtk-qt-engine, then you should be able to use Qt's GTK style just fine.

Offline

#8 2009-05-11 02:02:19

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: What's the correct way to make QT4/KDE4 apps use my GTK theme?

Actually, it seems that often does not work and gtk-qt-engine is falsely detected by qt 4.5. You can solve this with
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
in the environment where you start qtconfig and other qt apps.

Offline

Board footer

Powered by FluxBB