Home · All Classes · All Functions · Overviews

QCommonStyle Class Reference
[QtGui module]

The QCommonStyle class encapsulates the common Look and Feel of a GUI. More...

 #include <QCommonStyle>

Inherits QStyle.

Inherited by QMotifStyle, QProxyStyle, QS60Style, and QWindowsStyle.


Public Functions

QCommonStyle ()
~QCommonStyle ()

Reimplemented Public Functions

virtual void drawComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, QPainter * p, const QWidget * widget = 0 ) const
virtual void drawControl ( ControlElement element, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0 ) const
virtual void drawPrimitive ( PrimitiveElement pe, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0 ) const
virtual QPixmap generatedIconPixmap ( QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt ) const
virtual SubControl hitTestComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * widget = 0 ) const
virtual int pixelMetric ( PixelMetric m, const QStyleOption * opt = 0, const QWidget * widget = 0 ) const
virtual void polish ( QPalette & pal )
virtual void polish ( QApplication * app )
virtual void polish ( QWidget * widget )
virtual QSize sizeFromContents ( ContentsType ct, const QStyleOption * opt, const QSize & csz, const QWidget * widget = 0 ) const
virtual QPixmap standardPixmap ( StandardPixmap sp, const QStyleOption * option = 0, const QWidget * widget = 0 ) const
virtual int styleHint ( StyleHint sh, const QStyleOption * opt = 0, const QWidget * widget = 0, QStyleHintReturn * hret = 0 ) const
virtual QRect subControlRect ( ComplexControl cc, const QStyleOptionComplex * opt, SubControl sc, const QWidget * widget = 0 ) const
virtual QRect subElementRect ( SubElement sr, const QStyleOption * opt, const QWidget * widget = 0 ) const
virtual void unpolish ( QWidget * widget )
virtual void unpolish ( QApplication * application )

Additional Inherited Members


Detailed Description

The QCommonStyle class encapsulates the common Look and Feel of a GUI.

This abstract class implements some of the widget's look and feel that is common to all GUI styles provided and shipped as part of Qt.

Since QCommonStyle inherits QStyle, all of its functions are fully documented in the QStyle documentation.

See also QStyle, QMotifStyle, and QWindowsStyle.


Member Function Documentation

QCommonStyle::QCommonStyle ()

Constructs a QCommonStyle.

QCommonStyle::~QCommonStyle ()

Destroys the style.

void QCommonStyle::drawComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, QPainter * p, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::drawComplexControl().

void QCommonStyle::drawControl ( ControlElement element, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::drawControl().

void QCommonStyle::drawPrimitive ( PrimitiveElement pe, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::drawPrimitive().

QPixmap QCommonStyle::generatedIconPixmap ( QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt ) const   [virtual]

Reimplemented from QStyle::generatedIconPixmap().

SubControl QCommonStyle::hitTestComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::hitTestComplexControl().

int QCommonStyle::pixelMetric ( PixelMetric m, const QStyleOption * opt = 0, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::pixelMetric().

void QCommonStyle::polish ( QPalette & pal )   [virtual]

Reimplemented from QStyle::polish().

void QCommonStyle::polish ( QApplication * app )   [virtual]

Reimplemented from QStyle::polish().

void QCommonStyle::polish ( QWidget * widget )   [virtual]

Reimplemented from QStyle::polish().

QSize QCommonStyle::sizeFromContents ( ContentsType ct, const QStyleOption * opt, const QSize & csz, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::sizeFromContents().

QPixmap QCommonStyle::standardPixmap ( StandardPixmap sp, const QStyleOption * option = 0, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::standardPixmap().

int QCommonStyle::styleHint ( StyleHint sh, const QStyleOption * opt = 0, const QWidget * widget = 0, QStyleHintReturn * hret = 0 ) const   [virtual]

Reimplemented from QStyle::styleHint().

QRect QCommonStyle::subControlRect ( ComplexControl cc, const QStyleOptionComplex * opt, SubControl sc, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::subControlRect().

QRect QCommonStyle::subElementRect ( SubElement sr, const QStyleOption * opt, const QWidget * widget = 0 ) const   [virtual]

Reimplemented from QStyle::subElementRect().

void QCommonStyle::unpolish ( QWidget * widget )   [virtual]

Reimplemented from QStyle::unpolish().

void QCommonStyle::unpolish ( QApplication * application )   [virtual]

Reimplemented from QStyle::unpolish().


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.3