Jens
Uncategorized
Qt
Styles
Posted by Jens
 in Uncategorized, Qt, Styles
 on Friday, June 08, 2007 @ 15:51

Seeing all the interest in the DotNet style makes it fairly obvious that you would like to have sexy tool bars with Qt. Today I implemented another popular style for tool bars on Windows: the Explorer style. The difference might not be all that obvious at first sight, but you will see a nice gradient shading across the tool bar and menu areas if you look closer. It is also entirely theme dependent.

Here is how it looks on XP:
explorer style

And here is how it looks on Vista:
explorer style

Get the files here : explorerstyle.zip

To try it out simply compile the style and run your application with “-style explorer” as command line arguments.

A few notes :
- left and right toolbar areas do not have gradients as the shading looked a bit weird in those areas
- It requires Qt 4.3.0 and will only work on Windows
- You can use it on both open source and commercial apps at your own risk

Enjoy ;)

8 Responses to “Explorer style tool bars on Windows”

» Posted by AlKu
 on Saturday, June 09, 2007 @ 17:52

Wow, thank you! I really appreciate what you’ve been doing lately with all the Windows Style perfections.
I can’t tell you how often I submitted suggestions for over 2 years regarding stuff like this (gradients in tool bars, fancy item view selections, etc.). Thanks!

» Posted by miniak
 on Sunday, June 10, 2007 @ 10:21

Thank you VERY VERY much, this is exactly what I was thiking about ! :)

» Posted by sysedit
 on Sunday, June 10, 2007 @ 17:11

Thanks Jens !

» Posted by WindowsClassicStylePerfections
 on Monday, June 11, 2007 @ 02:30

> Windows Style perfections…

… and what about border of the QComboBox popup list in WindowsClassic style?

» Reply from Jens
 on Monday, June 11, 2007 @ 07:58

Thank you guys, it is truly inspiring getting positive feedback.
WCSP : This is not the right forum for this. Please fill out this form instead: http://trolltech.com/developer/bugreport-form

» Posted by WindowsClassicStylePerfections
 on Monday, June 11, 2007 @ 09:54

OK, sorry.
Your work is great.

Thanks!

» Posted by sysedit
 on Wednesday, June 13, 2007 @ 07:28

Small detail, in the .pro, you have set TARGET before the classic “_d/_debug” routine.
Currently, TARGET will ever be explorerstyle, in debug or in release.

» Reply from Jens
 on Wednesday, June 13, 2007 @ 08:18

sysedit : Thanks for pointing that out. I’ll make sure to clean it up next time I edit the sources.



© 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.