The QCDEStyle class provides a CDE look and feel. More...
#include <QCDEStyle>
Inherits: 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() and drawPrimitive() which are documented here.
See also QWindowsXPStyle, QMacStyle, QWindowsStyle, QPlastiqueStyle, and QMotifStyle.
Constructs a QCDEStyle.
If 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.
Destroys the style.
Reimplemented from QStyle::drawControl().
Reimplemented from QStyle::drawPrimitive().
Reimplemented from QStyle::pixelMetric().
Reimplemented from QStyle::standardPalette().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.