Qt4 apps Look and Feel on Gnome

Posted by Arkham on October 4th, 2008

There are so many applications that depend on qt in my system (among others skype, vlc, opera, picard and virtualbox) that I decided to remove all the statically-compiled-against packages and just install the library and normal packages; this gave me also the chance to find a better way to integrate qt apps in a gnome-based desktop environment.

The problems that I noticed were that all the fonts looked really tiny and the overall look of the application was kinda poor, so I took a look at the binaries included in the qt package:

arkham ~  $  pacman -Ql qt | grep bin
qt /usr/bin/
qt /usr/bin/assistant
qt /usr/bin/assistant_adp
qt /usr/bin/designer
qt /usr/bin/linguist
qt /usr/bin/lrelease
qt /usr/bin/lupdate
qt /usr/bin/moc
qt /usr/bin/pixeltool
qt /usr/bin/qcollectiongenerator
qt /usr/bin/qdbus
qt /usr/bin/qdbuscpp2xml
qt /usr/bin/qdbusviewer
qt /usr/bin/qdbusxml2cpp
qt /usr/bin/qhelpconverter
qt /usr/bin/qhelpgenerator
qt /usr/bin/qmake
qt /usr/bin/qt3to4
qt /usr/bin/qtconfig
qt /usr/bin/rcc
qt /usr/bin/uic
qt /usr/bin/uic3

I tried with qtconfig and it solved the fonts problem, but the default styles still looked really bad; luckily, I found a project called QGtkStyle, that lets you use a gtk-rendered qt style, thus giving a native appearence for qt apps running on gnome. To install it, make sure to have qt4.4 and gtk2 installed correctly, then:

svn co "svn://labs.trolltech.com/svn/styles/gtkstyle"
cd gtkstyle/
qmake && make
sudo make install


yaourt -S qgtkstyle-svn

Now, from the qtconfig menu you can choose a new style called GTK, and I can assure you that this one looks really nice. Have fun ;)

This entry was posted on Saturday, October 4th, 2008 at 19:35 and is filed under computers. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Tags: , , ,

Comments are closed.