DotNet style with Office flavor

Published Friday July 6th, 2007
8 Comments on DotNet style with Office flavor
Posted in DotNet, Qt, Styles

The style now comes in two flavors: Standard, and Office. The standard style is the one seen previously. The new Office style is presented here:

office style

I also have some good news for commercial users waiting for this. The style will be renamed QtDotNetStyle and should be released as a dual licensed Qt Solution, hopefully next week.

Do you like this? Share it
Share on LinkedInGoogle+Share on FacebookTweet about this on Twitter

Posted in DotNet, Qt, Styles

8 comments

Clement says:

This is great news !

I updated from the SVN and now the style fails to compile under VS2005 (No SP), I got 2 C2264 errors in dotnetstyle.cpp, at lines 1127 and 1128.

Clement says:

I fixed the bug 🙂 Here is the diff file content :

Index: /path/to/Qt/DotNetStyle/dotnetstyle.cpp
===================================================================
— /path/to/Qt/DotNetStyle/dotnetstyle.cpp (revision 52)
+++ /path/to/Qt/DotNetStyle/dotnetstyle.cpp (working copy)
@@ -1124,8 +1124,8 @@
WCHAR themeColor[maxlength];
internalPalette = Classic;
if (pIsAppThemed && pIsAppThemed() && pGetCurrentThemeName(themeFileName, maxlength, themeColor, maxlength, NULL, 0) == S_OK) {
– QString name = QString::fromUtf16(themeFileName);
– QString color = QString::fromUtf16(themeColor);
+ QString name = QString::fromWCharArray(themeFileName);
+ QString color = QString::fromWCharArray(themeColor);
if (theme == DotNetStyle::Standard) {
if (name.endsWith(“Luna.msstyles”)) {
if (color == “Metallic”)

Jens says:

Thanks clement. I’ll see if I can get it patched up soon. It’s good to get feedback like that.

Mark says:

This looks fantastic and it’s great news that it’s being made available to commercial customers, however, shouldn’t this be a part of Qt itself rather than a Solution?

Jens says:

Mark: Since it is not really the platform look and feel and it only makes sense for Windows customers, I think it makes most sense to deliver it as a solution at the moment. This also has the added benefit of being made available to people without having to wait for the next minor release of Qt. We need to be careful about what we actually include inside the Qt libraries since adding things comes at the expense of library size and maintainability. There are some signs that Microsoft is moving away from this style and adding it inside Qt essentially means we have to stay committed to it for all future versions. That said, popular solutions do have a tendency to make it into Qt itself.

Andy Brice says:

Excellent. I look forward to trying it.

Marius says:

To all our commercial customers:
The QtDotNetStyle has now been released as a Qt Solution product! Go get it! 🙂
http://trolltech.com/products/qt/addon/solutions/catalog/4/styles/qtdotnetstyle

Andy Brice says:

I needed to make this change to get it to work with vc6:
if (QStatusBar *statusBar = qFindChild( mw )) {
to
if (QStatusBar *statusBar = mw->findChild()) {

How do I get the blue/orange office style? I am running XP with the style set to XP and the colour scheme to ‘Default (blue)’ and have initialised the QApplication with:

setStyle( new QtDotNetStyle( QtDotNetStyle::Office ) );

Commenting closed.

Get started today with Qt Download now