QCommonStyle Class▲
-
Header: QCommonStyle
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
-
qmake: QT += widgets
-
Inherits: QStyle
-
Inherited By: QProxyStyle
-
Group: QCommonStyle is part of appearance
Detailed Description▲
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▲
See also QStyle, 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▲
[override virtual] void QCommonStyle::drawControl(QStyle::ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::drawControl(QStyle::ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const.
[override virtual] void QCommonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const.
[override virtual] QPixmap QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const▲
Reimplements: QStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *option) const.
[override virtual] QStyle::SubControl QCommonStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget = nullptr) const▲
[override virtual] int QCommonStyle::layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const▲
[override virtual] int QCommonStyle::pixelMetric(QStyle::PixelMetric m, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption *option, const QWidget *widget) const.
[override virtual] void QCommonStyle::polish(QPalette &pal)▲
Reimplements: QStyle::polish(QPalette &palette).
[override virtual] void QCommonStyle::polish(QApplication *app)▲
Reimplements: QStyle::polish(QApplication *application).
[override virtual] void QCommonStyle::polish(QWidget *widget)▲
Reimplements: QStyle::polish(QWidget *widget).
[override virtual] QSize QCommonStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption *opt, const QSize &csz, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::sizeFromContents(QStyle::ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const.
[override virtual] QPixmap QCommonStyle::standardPixmap(QStyle::StandardPixmap sp, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption *option, const QWidget *widget) const.
[override virtual] int QCommonStyle::styleHint(QStyle::StyleHint sh, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr, QStyleHintReturn *hret = nullptr) const▲
Reimplements: QStyle::styleHint(QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const.
[override virtual] QRect QCommonStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, QStyle::SubControl sc, const QWidget *widget = nullptr) const▲
[override virtual] QRect QCommonStyle::subElementRect(QStyle::SubElement sr, const QStyleOption *opt, const QWidget *widget = nullptr) const▲
Reimplements: QStyle::subElementRect(QStyle::SubElement element, const QStyleOption *option, const QWidget *widget) const.
[override virtual] void QCommonStyle::unpolish(QWidget *widget)▲
Reimplements: QStyle::unpolish(QWidget *widget).
[override virtual] void QCommonStyle::unpolish(QApplication *application)▲
Reimplements: QStyle::unpolish(QApplication *application).