Home

QtDotNet Style Usage

Usage

The QtDotNet Style component may be used either as a plugin, or linked directly into the application.

Plugin

When installing this component, by default a style plugin is built and installed into Qt's style plugins directory (typically $QTDIR/plugins/styles).

When the plugin is present, the style may be invoked either on the commandline:

 myapplication.exe -style qtdotnet

or programmatically:

 QApplication::setStyle(QStyleFactory::create("qtdotnet"));

Direct Linking

If a plugin is undesirable, the style may be compiled directly into the application instead. To do this, just add the component's source code files to your project, as explained in INSTALL.TXT. The style may then be invoked programmatically like this:

 #include <qtdotnetstyle.h>
 ...
 QApplication::setStyle(new QtDotNetStyle);

Examples

No special example program is required to demonstrate this component. To try out Dotnet Style, start any Qt-based application (e.g. Qt Assistant, assistant.exe) with the -style qtdotnet commandline argument.


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