Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QWindowsXPStyle Class Reference

The QWindowsXPStyle class provides a Microsoft WindowsXP-like look and feel. More...

#include <QWindowsXPStyle>

Inherits QWindowsStyle.

List of all members.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions

Protected Slots


Detailed Description

The QWindowsXPStyle class provides a Microsoft WindowsXP-like look and feel.

Warning: This style is only available on the Windows XP platform because it makes use of Windows XP's style engine.

Most of the functions are documented in the base classes QWindowsStyle, QCommonStyle, and QStyle, but the QWindowsXPStyle overloads of drawComplexControl(), drawControl(), drawControlMask(), drawPrimitive(), querySubControlMetrics(), and sizeFromContents(), are documented here.


Member Function Documentation

QWindowsXPStyle::QWindowsXPStyle ()

Constructs a QWindowsStyle

QWindowsXPStyle::~QWindowsXPStyle ()

Destroys the style.

void QWindowsXPStyle::activeTabChanged ()   [protected slot]

void QWindowsXPStyle::drawComplexControl ( ComplexControl control, QPainter * p, const QWidget * w, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the complex control on the painter p. The confining rectangle is r and the palette to use is pal. The drawing respects the flags in flags, sub, and subActive, and the style options in opt. The widget w may be given and may be useful for drawing the control.

void QWindowsXPStyle::drawControl ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the control element on the painter p. The confining rectangle is r and the palette to use is pal. The drawing respects the flags in flags, and the style options in opt. The widget may be given and may be useful for drawing the control.

void QWindowsXPStyle::drawControlMask ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const Q3StyleOption & option = Q3StyleOption::Default ) const

Draws the control element on the painter p. The confining rectangle is r and the style option is option. The widget may be given and may be useful for drawing the element.

void QWindowsXPStyle::drawPrimitive ( PrimitiveElement op, QPainter * p, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the primitive element op on the painter p. The confining rectangle is r and the palette to use is pal. The drawing respects the flags in flags, and the style options in opt.

QRect QWindowsXPStyle::querySubControlMetrics ( ComplexControl control, const QWidget * widget, SubControl sc, const Q3StyleOption & option = Q3StyleOption::Default ) const

Returns the rectangle needed by the sub-control sc in the given control using the style option. The widget may contain a widget that is useful for calculating the size.

QSize QWindowsXPStyle::sizeFromContents ( ContentsType contents, const QWidget * widget, const QSize & contentsSize, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Returns the size of the contents based on the contentsSize and the style options in opt. The widget may contain a widget that is useful for calculating the size.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1