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
- 1 writable property inherited from QObject
Public Functions
- QWindowsXPStyle ()
- ~QWindowsXPStyle ()
- void 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
- void drawControl ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- void drawControlMask ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const Q3StyleOption & option = Q3StyleOption::Default ) const
- void drawPrimitive ( PrimitiveElement op, QPainter * p, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- QRect querySubControlMetrics ( ComplexControl control, const QWidget * widget, SubControl sc, const Q3StyleOption & option = Q3StyleOption::Default ) const
- QSize sizeFromContents ( ContentsType contents, const QWidget * widget, const QSize & contentsSize, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- 9 public functions inherited from QCommonStyle
- 24 public functions inherited from QStyle
- 24 public functions inherited from QObject
Public Slots
- 1 public slot inherited from QObject
Signals
Static Public Members
- 6 static public members inherited from QStyle
- 4 static public members inherited from QObject
Protected Functions
- 9 protected functions inherited from QObject
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.