QCDEStyle Class

The QCDEStyle class provides a CDE look and feel. More...

Header: #include <QCDEStyle>
Inherits: QMotifStyle

Public Functions

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

Reimplemented Public Functions

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
  • 14 public functions inherited from QMotifStyle
  • 16 public functions inherited from QCommonStyle
  • 24 public functions inherited from QStyle
  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 6 static public members inherited from QStyle
  • 7 static public members inherited from QObject
  • 1 protected function inherited from QMotifStyle
  • 8 protected functions inherited from QObject
  • 2 protected slots inherited from QStyle

Detailed Description

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.

Member Function Documentation

QCDEStyle::QCDEStyle(bool useHighlightCols = false)

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.

[virtual] QCDEStyle::~QCDEStyle()

Destroys the style.

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

Reimplemented from QStyle::drawControl().

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

Reimplemented from QStyle::drawPrimitive().

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

Reimplemented from QStyle::pixelMetric().

[virtual] QPalette QCDEStyle::standardPalette() const

Reimplemented from QStyle::standardPalette().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.