How to make Qt programs look good under Xfce?

Solution 1:

This is not exactly an answer to your question but if you want a nice, consistent and unified look for both Qt and GTK programs I recommend the QtCurve style. Modern distributions should provide a package, in Ubuntu it's apt-get install qtcurve.

And yes, qtconfig is the program to use for configuring Qt-related stuff. In Ubuntu 16.04 you can install it via apt install qt4-qtconfig.

Solution 2:

ok. sorted.

simply run qtconfig and select different look.

Solution 3:

Put this in ~/.bashrc. It works with Qt 5 and Gtk+ 3:

export QT_STYLE_OVERRIDE=gtk

Solution 4:

Excuse the slight self-promotion but I wrote a blog post and script to ensure QGtkEngine finds the correct GTK style: http://mikemcquaid.com/2011/12/01/make-qt-use-the-gtk-style-on-xfce-or-xubuntu/

Solution 5:

If QT4 apps don't look good, then do the following and your GTK theme will be used:

In terminal type:

gconftool-2 --set --type string /desktop/gnome/interface/gtk_theme your-theme-name

then edit the ~/.xinitrc file and add the following line:

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