Qt 4.7: QWindowsXPStyle Class Reference

Qt Reference Documentation

# QWindowsXPStyle Class Reference

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

     #include <QWindowsXPStyle>

Inherits: QWindowsStyle.

Inherited by: QWindowsVistaStyle.

- List of all members, including inherited members

## Public Functions

| QWindowsXPStyle ()
| ~QWindowsXPStyle ()

## Reimplemented Public Functions

virtual void | drawComplexControl ( ComplexControl cc, const QStyleOptionComplex * option, QPainter * p, const QWidget * widget = 0 ) const
virtual void | drawControl ( ControlElement element, const QStyleOption * option, QPainter * p, const QWidget * widget = 0 ) const
virtual void | drawPrimitive ( PrimitiveElement pe, const QStyleOption * option, QPainter * p, const QWidget * widget = 0 ) const
virtual int | pixelMetric ( PixelMetric pm, const QStyleOption * option = 0, const QWidget * widget = 0 ) const
virtual void | polish ( QApplication * app )
virtual void | polish ( QWidget * widget )
virtual void | polish ( QPalette & pal )
virtual QSize | sizeFromContents ( ContentsType ct, const QStyleOption * option, const QSize & contentsSize, const QWidget * widget = 0 ) const
virtual QPalette | standardPalette () const
virtual QPixmap | standardPixmap ( StandardPixmap standardPixmap, const QStyleOption * option, const QWidget * widget = 0 ) const
virtual int | styleHint ( StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0 ) const
virtual QRect | subControlRect ( ComplexControl cc, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget = 0 ) const
virtual QRect | subElementRect ( SubElement sr, const QStyleOption * option, const QWidget * widget = 0 ) const
virtual void | unpolish ( QApplication * app )
virtual void | unpolish ( QWidget * widget )

- 13 public functions inherited from QWindowsStyle
- 16 public functions inherited from QCommonStyle
- 24 public functions inherited from QStyle
- 29 public functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 6 static public members inherited from QStyle
- 5 static public members inherited from QObject
- 2 protected functions inherited from QWindowsStyle
- 7 protected functions inherited from QObject
- 2 protected slots inherited from QStyle

## Detailed Description

The QWindowsXPStyle class provides a Microsoft Windows XP-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(), proxy()->subControlRect(), and sizeFromContents(), are documented here.

See also QMacStyle, QWindowsStyle, QPlastiqueStyle, QCDEStyle, and QMotifStyle.

## Member Function Documentation

### QWindowsXPStyle::QWindowsXPStyle ()

Constructs a QWindowsStyle

### QWindowsXPStyle::~QWindowsXPStyle ()

Destroys the style.

### void QWindowsXPStyle::drawComplexControl ( ComplexControl cc, const QStyleOptionComplex * option, QPainter * p, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::drawComplexControl().

### void QWindowsXPStyle::drawControl ( ControlElement element, const QStyleOption * option, QPainter * p, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::drawControl().

### void QWindowsXPStyle::drawPrimitive ( PrimitiveElement pe, const QStyleOption * option, QPainter * p, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::drawPrimitive().

### int QWindowsXPStyle::pixelMetric ( PixelMetric pm, const QStyleOption * option = 0, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::pixelMetric().

### void QWindowsXPStyle::polish ( QApplication * app )`[virtual]`

Reimplemented from QStyle::polish().

### void QWindowsXPStyle::polish ( QWidget * widget )`[virtual]`

Reimplemented from QStyle::polish().

### void QWindowsXPStyle::polish ( QPalette & pal )`[virtual]`

Reimplemented from QStyle::polish().

### QSize QWindowsXPStyle::sizeFromContents ( ContentsType ct, const QStyleOption * option, const QSize & contentsSize, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::sizeFromContents().

### QPalette QWindowsXPStyle::standardPalette () const`[virtual]`

Reimplemented from QStyle::standardPalette().

### QPixmap QWindowsXPStyle::standardPixmap ( StandardPixmap standardPixmap, const QStyleOption * option, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::standardPixmap().

### int QWindowsXPStyle::styleHint ( StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0 ) const`[virtual]`

Reimplemented from QStyle::styleHint().

### QRect QWindowsXPStyle::subControlRect ( ComplexControl cc, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::subControlRect().

### QRect QWindowsXPStyle::subElementRect ( SubElement sr, const QStyleOption * option, const QWidget * widget = 0 ) const`[virtual]`

Reimplemented from QStyle::subElementRect().

### void QWindowsXPStyle::unpolish ( QApplication * app )`[virtual]`

Reimplemented from QStyle::unpolish().

### void QWindowsXPStyle::unpolish ( QWidget * widget )`[virtual]`

Reimplemented from QStyle::unpolish().