Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I start any Qt app, I get this message in the terminal, and the Qt app doesn't use the same theme as my Gtk apps:

QGtkStyle was unable to detect the current GTK+ theme.

How do I make QGtkStyle detect my current GTK+ theme?

It seems that LXDE is using a settings daemon, and there is no gtkrc-2.0 file in my home folder.

share|improve this question
I have the same problem running Medusa4 (a cad programme), but I'm not sure I have the .grkrc-2.0 file anywhere. I have Ubuntu 13.10 installed. Could someone help? Thanks in advance – user274075 Apr 25 '14 at 10:03
up vote 4 down vote accepted

Try with:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

Also make sure you defined a theme in yout gtkrc-2.0 like this:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.