How to change a QT app's color theme in environment?

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

How to change a QT app's color theme in environment?

Postby bjoernX » Tue Apr 24, 2012 19:48

Hi,
I have just run into a little trouble with a QT app - Fritzing http://fritzing.org/ - not displaying some text readable, which is very likely caused by my darkish "Obsidian Coast" theme (on KDE4).

Now, for GTK based apps (which fail in this respect very often, even the big ones like libreoffice) I found out, that the used theme can be individually controlled by setting the environment variable GTK2_RC_FILES to something in /usr/share/themes/[...]. I have a small script "gtk-default-theme" to start these with a boring standard theme, if necessary:

Code: Select all
#!/bin/sh
GTK2_RC_FILES=/usr/share/themes/Default/gtk-2.0-key/gtkrc "$@"


So, I wonder: Is there such an environment variable or similar way to trick a QT application into using a different colour theme (than the one I set in KDE's System-Settings)?

There has to be, don't it? I just googled for it, but nothing showed up, so I thought, why not ask right here.
bjoernX
Baby Hen
 
Posts: 9
Joined: Sat Feb 18, 2012 22:38

Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 2 guests