You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 27th 2010, 11:50am

Ubuntu + QT + GTK+ style (not working)

Hi, guys!

I have Qt 4.7 framework installed(from sources) on my Ubuntu 10.04 box and I have problems with enabling GTK+ style on my applications.
Nokia applications (such as QtCreator or QtDesigner) works fine, using my desktop theme settings (look at picture 1), but my application looks ugly even if I run them with -style GTK+ option (look at picture 2).
As I understood from this article, my aplications uses Qt4.7 libraries, I have installer, which don't supports GTK+, and Nokia application uses "native" Ubuntu 4.6.2 libraries from (/usr/share) which does. I checked this by renaming my Qt4.7 folder (after renaming my application found "native" Qt libraries and run with GTK+ style!).
So, what's the difference between my Qt4.7 installation and "native" installation? I suppose, I need recompile Qt with some option (maybe -glib).

P.S. I can't use Qt4.6 in development because of some QtMultimedia'a novelties I am using.

Picture 1 Picture 2