Home

QtDotNetStyle Class Reference

The QtDotNetStyle class provides an alternative, modern look for Qt applications on Windows. More...

 #include <QtDotNetStyle>

Inherits QWindowsVistaStyle.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

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.


Member Type Documentation

enum QtDotNetStyle::ColorTheme

This enum describes the different color schemes supported by the style.

ConstantValueDescription
QtDotNetStyle::Standard0Use gradients based on the operating system palette.
QtDotNetStyle::Office1Use Microsoft Office 2003 style gradients.


Member Function Documentation

QtDotNetStyle::QtDotNetStyle ()

Constructs a QtDotNetStyle object which uses the default color theme (Office).

QtDotNetStyle::QtDotNetStyle ( ColorTheme colortheme )

Constructs a QtDotNetStyle object which uses the color theme colortheme.

QtDotNetStyle::~QtDotNetStyle ()

Destroys the QtDotNetStyle object.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Solutions