The QCommonStyle class encapsulates the common Look and Feel of a GUI. 更多...
头: | #include <QCommonStyle> |
qmake: | QT += widgets |
继承: | QStyle |
继承者: | QProxyStyle |
QCommonStyle () | |
~QCommonStyle () |
virtual void | drawComplexControl (ComplexControl cc , const QStyleOptionComplex * opt , QPainter * p , const QWidget * widget = Q_NULLPTR) const |
virtual void | drawControl (ControlElement element , const QStyleOption * opt , QPainter * p , const QWidget * widget = Q_NULLPTR) const |
virtual void | drawPrimitive (PrimitiveElement pe , const QStyleOption * opt , QPainter * p , const QWidget * widget = Q_NULLPTR) 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 = Q_NULLPTR) const |
virtual int | layoutSpacing (QSizePolicy::ControlType control1 , QSizePolicy::ControlType control2 , Qt::Orientation orientation , const QStyleOption * option = Q_NULLPTR, const QWidget * widget = Q_NULLPTR) const |
virtual int | pixelMetric (PixelMetric m , const QStyleOption * opt = Q_NULLPTR, const QWidget * widget = Q_NULLPTR) 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 = Q_NULLPTR) const |
virtual QPixmap | standardPixmap (StandardPixmap sp , const QStyleOption * option = Q_NULLPTR, const QWidget * widget = Q_NULLPTR) const |
virtual int | styleHint (StyleHint sh , const QStyleOption * opt = Q_NULLPTR, const QWidget * widget = Q_NULLPTR, QStyleHintReturn * hret = Q_NULLPTR) const |
virtual QRect | subControlRect (ComplexControl cc , const QStyleOptionComplex * opt , SubControl sc , const QWidget * widget = Q_NULLPTR) const |
virtual QRect | subElementRect (SubElement sr , const QStyleOption * opt , const QWidget * widget = Q_NULLPTR) const |
virtual void | unpolish (QWidget * widget ) |
virtual void | unpolish (QApplication * application ) |
The QCommonStyle class encapsulates the common Look and Feel of a GUI.
此抽象类实现作为 Qt 的一部分提供并随附了所有 GUI 样式所公共的一些 Widget 外观和感觉。
由于 QCommonStyle 继承 QStyle ,它的所有函数的完整文档是在 QStyle 文档编制。
另请参阅 QStyle and QProxyStyle .
构造 QCommonStyle .
销毁样式。
[虚拟]
void
QCommonStyle::
drawComplexControl
(
ComplexControl
cc
, const
QStyleOptionComplex
*
opt
,
QPainter
*
p
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::drawComplexControl ().
[虚拟]
void
QCommonStyle::
drawControl
(
ControlElement
element
, const
QStyleOption
*
opt
,
QPainter
*
p
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::drawControl ().
[虚拟]
void
QCommonStyle::
drawPrimitive
(
PrimitiveElement
pe
, const
QStyleOption
*
opt
,
QPainter
*
p
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::drawPrimitive ().
[虚拟]
QPixmap
QCommonStyle::
generatedIconPixmap
(
QIcon::Mode
iconMode
, const
QPixmap
&
pixmap
, const
QStyleOption
*
opt
) const
重实现自 QStyle::generatedIconPixmap ().
[虚拟]
SubControl
QCommonStyle::
hitTestComplexControl
(
ComplexControl
cc
, const
QStyleOptionComplex
*
opt
, const
QPoint
&
pt
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::hitTestComplexControl ().
[虚拟]
int
QCommonStyle::
layoutSpacing
(
QSizePolicy::ControlType
control1
,
QSizePolicy::ControlType
control2
,
Qt::Orientation
orientation
, const
QStyleOption
*
option
= Q_NULLPTR, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::layoutSpacing ().
[虚拟]
int
QCommonStyle::
pixelMetric
(
PixelMetric
m
, const
QStyleOption
*
opt
= Q_NULLPTR, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::pixelMetric ().
[虚拟]
void
QCommonStyle::
polish
(
QPalette
&
pal
)
重实现自 QStyle::polish ().
[虚拟]
void
QCommonStyle::
polish
(
QApplication
*
app
)
重实现自 QStyle::polish ().
[虚拟]
void
QCommonStyle::
polish
(
QWidget
*
widget
)
重实现自 QStyle::polish ().
[虚拟]
QSize
QCommonStyle::
sizeFromContents
(
ContentsType
ct
, const
QStyleOption
*
opt
, const
QSize
&
csz
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::sizeFromContents ().
[虚拟]
QPixmap
QCommonStyle::
standardPixmap
(
StandardPixmap
sp
, const
QStyleOption
*
option
= Q_NULLPTR, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::standardPixmap ().
[虚拟]
int
QCommonStyle::
styleHint
(
StyleHint
sh
, const
QStyleOption
*
opt
= Q_NULLPTR, const
QWidget
*
widget
= Q_NULLPTR,
QStyleHintReturn
*
hret
= Q_NULLPTR) const
重实现自 QStyle::styleHint ().
[虚拟]
QRect
QCommonStyle::
subControlRect
(
ComplexControl
cc
, const
QStyleOptionComplex
*
opt
,
SubControl
sc
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::subControlRect ().
[虚拟]
QRect
QCommonStyle::
subElementRect
(
SubElement
sr
, const
QStyleOption
*
opt
, const
QWidget
*
widget
= Q_NULLPTR) const
重实现自 QStyle::subElementRect ().
[虚拟]
void
QCommonStyle::
unpolish
(
QWidget
*
widget
)
重实现自 QStyle::unpolish ().
[虚拟]
void
QCommonStyle::
unpolish
(
QApplication
*
application
)
重实现自 QStyle::unpolish ().