How to make Qt programs look good under Xfce?

29,963

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"

Share:
29,963

Related videos on Youtube

Stann
Author by

Stann

Updated on September 18, 2022

Comments

  • Stann
    Stann over 1 year

    I use Xfce.

    My problem is - some programs look nice and some sort of ugly. AFAIK this is because Xfce is GTK and most programs use GTK theme, but some programs use Qt and thus don't use GTK themes.

    So - my question is - How can I apply some theme to these Qt programs? Can I download some qt theme and drop into ~/.themes? would that work? Qt programs don't have to look absolutely the same as GTK ones - I don't care about that. But I want them at least not to look so ugly.:)

    enter image description here

  • Stann
    Stann almost 13 years
    i see.. Didn't now about qtCurve - thanks.