QCDEStyle Class

The QCDEStyle class provides a CDE look and feel. 更多...

頭: #include <QCDEStyle>
繼承: QMotifStyle

公共函數

QCDEStyle (bool useHighlightCols = false)
virtual ~QCDEStyle ()

重實現公共函數

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 int pixelMetric (PixelMetric metric , const QStyleOption * option = 0, const QWidget * widget = 0) const
virtual QPalette standardPalette () const

額外繼承成員

詳細描述

The QCDEStyle class provides a CDE look and feel.

This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).

Note that most of the functions provided by QCDEStyle are reimplementations of QStyle functions; see QStyle for their documentation. QCDEStyle provides overloads for drawControl () 和 drawPrimitive () which are documented here.

另請參閱 QWindowsXPStyle , QMacStyle , QWindowsStyle , QPlastiqueStyle ,和 QMotifStyle .

成員函數文檔編製

QCDEStyle:: QCDEStyle ( bool useHighlightCols = false)

構造 QCDEStyle .

useHighlightCols is false (the default), then the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.

[虛擬] QCDEStyle:: ~QCDEStyle ()

銷毀樣式。

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

重實現自 QStyle::drawControl ().

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

重實現自 QStyle::drawPrimitive ().

[虛擬] int QCDEStyle:: pixelMetric ( PixelMetric metric , const QStyleOption * option = 0, const QWidget * widget = 0) const

重實現自 QStyle::pixelMetric ().

[虛擬] QPalette QCDEStyle:: standardPalette () const

重實現自 QStyle::standardPalette ().