QCommonStyle Class
The QCommonStyle class encapsulates the common Look and Feel of a GUI. More...
Header: | #include <QCommonStyle> |
qmake: | QT += widgets |
Inherits: | QStyle |
Inherited By: |
Public Functions
QCommonStyle() | |
virtual | ~QCommonStyle() |
Reimplemented Public Functions
virtual void | drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = nullptr) const override |
virtual void | drawControl(QStyle::ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const override |
virtual void | drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const override |
virtual QPixmap | generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override |
virtual QStyle::SubControl | hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget = nullptr) const override |
virtual int | layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override |
virtual int | pixelMetric(QStyle::PixelMetric m, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr) const override |
virtual void | polish(QPalette &pal) override |
virtual void | polish(QApplication *app) override |
virtual void | polish(QWidget *widget) override |
virtual QSize | sizeFromContents(QStyle::ContentsType ct, const QStyleOption *opt, const QSize &csz, const QWidget *widget = nullptr) const override |
virtual QPixmap | standardPixmap(QStyle::StandardPixmap sp, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override |
virtual int | styleHint(QStyle::StyleHint sh, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr, QStyleHintReturn *hret = nullptr) const override |
virtual QRect | subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, QStyle::SubControl sc, const QWidget *widget = nullptr) const override |
virtual QRect | subElementRect(QStyle::SubElement sr, const QStyleOption *opt, const QWidget *widget = nullptr) const override |
virtual void | unpolish(QWidget *widget) override |
virtual void | unpolish(QApplication *application) override |
Static Public Members
const QMetaObject | staticMetaObject |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 protected functions inherited from QObject
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 and QProxyStyle.
Member Function Documentation
QCommonStyle::QCommonStyle()
Constructs a QCommonStyle.
[virtual]
QCommonStyle::~QCommonStyle()
Destroys the style.
[override virtual]
void QCommonStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = nullptr) const
Reimplemented from QStyle::drawComplexControl().
[override virtual]
void QCommonStyle::drawControl(QStyle::ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const
Reimplemented from QStyle::drawControl().
[override virtual]
void QCommonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const
Reimplemented from QStyle::drawPrimitive().
[override virtual]
QPixmap QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const
Reimplemented from QStyle::generatedIconPixmap().
[override virtual]
QStyle::SubControl QCommonStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget = nullptr) const
Reimplemented from QStyle::hitTestComplexControl().
[override virtual]
int QCommonStyle::layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const
Reimplemented from QStyle::layoutSpacing().
[override virtual]
int QCommonStyle::pixelMetric(QStyle::PixelMetric m, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr) const
Reimplemented from QStyle::pixelMetric().
[override virtual]
void QCommonStyle::polish(QPalette &pal)
Reimplemented from QStyle::polish().
[override virtual]
void QCommonStyle::polish(QApplication *app)
Reimplemented from QStyle::polish().
[override virtual]
void QCommonStyle::polish(QWidget *widget)
Reimplemented from QStyle::polish().
[override virtual]
QSize QCommonStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption *opt, const QSize &csz, const QWidget *widget = nullptr) const
Reimplemented from QStyle::sizeFromContents().
[override virtual]
QPixmap QCommonStyle::standardPixmap(QStyle::StandardPixmap sp, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const
Reimplemented from QStyle::standardPixmap().
[override virtual]
int QCommonStyle::styleHint(QStyle::StyleHint sh, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr, QStyleHintReturn *hret = nullptr) const
Reimplemented from QStyle::styleHint().
[override virtual]
QRect QCommonStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, QStyle::SubControl sc, const QWidget *widget = nullptr) const
Reimplemented from QStyle::subControlRect().
[override virtual]
QRect QCommonStyle::subElementRect(QStyle::SubElement sr, const QStyleOption *opt, const QWidget *widget = nullptr) const
Reimplemented from QStyle::subElementRect().
[override virtual]
void QCommonStyle::unpolish(QWidget *widget)
Reimplemented from QStyle::unpolish().
[override virtual]
void QCommonStyle::unpolish(QApplication *application)
Reimplemented from QStyle::unpolish().
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.