Home |
The QtDotNetStyle class provides an alternative, modern look for Qt applications on Windows. More...
#include <QtDotNetStyle>
Inherits QWindowsVistaStyle.
The QtDotNetStyle class provides an alternative, modern look for Qt applications on Windows.
The GUI look is very similar to the style introduced in Visual Studio 2005, Office 2003 as well as in .NET Windows Forms (when the RenderMode is set to "Professional" instead of "System"). It gives applications a modern gradient appearance for tool bars and menus while retaining the native look and feel for other widgets.
The style supports different color themes, which may be specified in the constructor. The default is the Office color theme.
This is the textedit example running with the Standard style:
This is the textedit example running with the Office style:
See also QStyle, QWindowsVistaStyle, and QWindowsXPStyle.
This enum describes the different color schemes supported by the style.
Constant | Value | Description |
---|---|---|
QtDotNetStyle::Standard | 0 | Use gradients based on the operating system palette. |
QtDotNetStyle::Office | 1 | Use Microsoft Office 2003 style gradients. |
Constructs a QtDotNetStyle object which uses the default color theme (Office).
Constructs a QtDotNetStyle object which uses the color theme colortheme.
Destroys the QtDotNetStyle object.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Solutions |