Jens
Uncategorized
Qt
Styles
QGtkStyle
Posted by Jens
 in Uncategorized, Qt, Styles, QGtkStyle
 on Friday, September 05, 2008 @ 14:14

QGtkStyle made it’s way into the Qt snapshots this week, meaning it will become part of the Qt 4.5 release. Technical users can already compile and use it on their own desktop, but once Qt 4.5 is out it will simply replace Cleanlooks as the default application style Qt uses on GNOME desktops. While I haven’t blogged about it since the announcement back in May, a lot of fixes and improvements have gone into it since then and I’d like to thank everybody contributing bug reports, suggestions and patches to the project so far. Since the existing plugin based on Qt 4.4 seems rather popular and not everybody feel comfortable using an unstable version of Qt, I will continue to maintain it as a separate project and accept bug reports over at my google code page.

Clearlooks dialogglider theme

In other news, the nice folks over at the Qt4 Maemo garage have been adapting QGtkStyle to work nicely with the Maemo platform as was evidenced by lorn’s post last month. Samuel also blogged about using Freetype for subpixel filtering which should eventually take care of any differences in font rendering between Qt and GTK.

17 Responses to “QGtkStyle now part of Qt”

» Posted by jb
 on Friday, September 05, 2008 @ 18:23

This is a great move for Qt!

» Posted by Vadim P.
 on Friday, September 05, 2008 @ 18:38

Sounds great.

» Posted by illissius
 on Saturday, September 06, 2008 @ 15:08

Very cool. At one point long ago I was also looking into doing a “gtk-qt-engine in reverse” — basically QGtkStyle — and the obstacle I found was that Qt’s painting API was just a hell of a lot more flexible than GTK’s. Qt draws in floating point coordinates with arbitrary transformations, while GTK’s API was a very simple pixel-based one. So while it’s possible to implement a pixel-based API using a floating point one as the backend, the reverse seemed to be basically impossible. How did you solve this? Or does GTK also have a new API now?

» Posted by pau
 on Monday, September 08, 2008 @ 13:09

Illissius, as far as I know, GTK now uses cairo (e.g. http://cairographics.org) which in fact does use floating point coordinates everywhere… That might explain it.

» Posted by SpamRocket
 on Tuesday, September 09, 2008 @ 08:13

I’m ignorant but, the one on the right is GTK style, right?

» Posted by Jeff
 on Tuesday, September 09, 2008 @ 09:05

SpamRocket: They are both QGtkStyle, just showing different GTK styles.

» Posted by Leslie Owusu-Appiah
 on Tuesday, September 09, 2008 @ 09:57

Finally! Awesome. Yes! Desktop GUI consistency.
*passes out from excitement*

» Posted by Anon
 on Tuesday, September 09, 2008 @ 10:13

Thank you!

I’m involved in development of Qt-based application and native look out-of-box on Ubuntu and company will be a huge step forward for our application. :-) Thanks!
Itis great to have native look under Gnome and still use great Qt toolkit.

» Posted by Dread Knight
 on Tuesday, September 09, 2008 @ 16:00

OMFG! This is fricking awesomeness! I really like gnome look (especially the Clearlooks and the intrepid one, the white version).
One more step toward GTK+ total deprecation. :-)

Cheers!

» Posted by Maki
 on Tuesday, September 09, 2008 @ 17:22

I would love to some some progress on the gtk side to, so that gtk apps look good in qt/KDE out of the box, cause gtk-qt-engine is litle hackish, i.e. some apps look really ugly with it. Also it would be great if gtk-styles engines are listed in systemsettings in kde, and an configure dialog in systemsettings to install themes for them too.

» Reply from Jens
 on Thursday, September 11, 2008 @ 08:59
Jens

Thanks for the positive comments!
illisius : As pau pointed out, Cairo is fairly comparable to QPainter these days but we are barely using the GTK painting API at all.

» Posted by Adam M.
 on Thursday, September 11, 2008 @ 21:22

This is a great move forward for the all developers writing multi-platform applications. After all, some probably even prefer the look and feel of GNOME, but prefer to code using Qt!

» Posted by David
 on Friday, September 12, 2008 @ 16:18

Awesome!

One problem I noticed so far: it doesn’t force a repaint on theme change. (Also, if possible, perhaps it’s worth detecting the two gtk-qt-engines and falling back to Plastique or something, to avoid problems.)

» Reply from Jens
 on Saturday, September 13, 2008 @ 06:56

David: Are you using the plugin or a snapshot of Qt? It is supposed to flush automatically but I know it has some issues while running on KDE at the moment. The fallback should already be handled on startup. If you are running the “Qt” theme engine it will refuse to load GTK and fall back to cleanlooks as you suggest. This doesnt work if GTK is already loaded though, so if you start out using another Gtk+ theme and change it to one of those two It would probably already be too late for me to do anything about the situation.

» Posted by Zaurux
 on Thursday, September 18, 2008 @ 10:30

Hi, for a final user like me (not a developper), there is a howto to used QGtkStyle on my Ubuntu Hardy (MSI Wind) ??
Or I must wait for Intrepid Ibex ?

Cheers.

(from Burgundy)

» Posted by Wouter
 on Friday, September 19, 2008 @ 21:12

Zaurux: you can install it from here: https://launchpad.net/~martin-espinoza/+archive Then you have to go to preferences -> qt and change the style to gtk.

» Posted by Antonio Aloisio
 on Tuesday, September 23, 2008 @ 15:05

Awesome! This is great for the maemo Qt developers.
QGTKStyle is very amazing!!! :D



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.