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

Mark Shuttleworth recently blogged about the decision to include the Qt libraries in the 11.10 release, with a followup from Jono Bacon. The thing that puts me off Qt apps is that they don't blend in very well with Ubuntu's Gtk-based theme. I recently read an Ars Technica article that mentioned that, with a bit of effort, Qt apps could be make to resemble Gtk apps.

Is there any documentation that will help me do this, and if not, does anyone at least have any idea how one would go about doing this?

share|improve this question
up vote 16 down vote accepted

Note: this is useful to desktop users, not to developers using Qt.

sudo apt-get install qt4-qtconfig, then go to System / Preferences / Qt 4 settings and select GTK style in the first combobox:

Qt Configuration dialog

share|improve this answer
this is already default since lucid . – Alaukik May 16 '11 at 7:08
Is there a way to do this that works with GTK3? – Mandy Nov 13 '11 at 22:54
This is great except it does nothing to change the icons that the qt apps use. For example, dolphin uses some really ugly icons running on ubuntu unity – Joshua Robison Jul 22 '12 at 11:25

Qt apps don't follow the font hinting settings that are set by gnome-appearance-properties. You need to explicitly add an entry to $HOME/.fonts.conf e.g.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <match target="font" >
  <edit mode="assign" name="rgba" >
 <match target="font" >
  <edit mode="assign" name="hinting" >
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
share|improve this answer

From nagul's SU post - direct quote:

Check QGtkStyle, a project to create a GTK+ layer for Qt-based applications (like KDE) running on GTK2-based desktops (like Gnome).

There are other ideas and scripts in the discussion on this topic at Ubuntu Brainstorm: Idea #1744: GNOME themes should affect Qt themes, and more of them in this discussion Idea #1714: GNOME QT integration (and the numerous duplicate ideas gathered under this question).

One of the noteworthy attempts is UniformUI, which attempts to automate configuration of Qt settings to match the current Gtk+ style, partially using QtCurve and QGtkStyle to achieve this.

Fourth google result for "skin qt to match gtk"

share|improve this answer
It looks like qgtkstyle isn't available anymore on the link you provided. And as i searched for it, i couldn't find it anywhere. – 71GA Sep 30 '12 at 7:57
@71GA See this: – RobotHumans Sep 30 '12 at 8:22

This does the job, in Qt 5 and Gtk+ 3:

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.