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 ().