Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QCleanlooksStyle Class Reference
[QtGui module]

The QCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME. More...

#include <QCleanlooksStyle>

Inherits QWindowsStyle.

This class was introduced in Qt 4.2.

Public Functions

Additional Inherited Members


Detailed Description

The QCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME.

The Cleanlooks style provides a look and feel for widgets that closely resembles the Clearlooks style, introduced by Richard Stellingwerff and Daniel Borgmann.

See also Cleanlooks Style Widget Gallery, QWindowsXPStyle, QMacStyle, QWindowsStyle, QCDEStyle, QMotifStyle, and QPlastiqueStyle.


Member Function Documentation

QCleanlooksStyle::QCleanlooksStyle ()

Constructs a QCleanlooksStyle object.

QCleanlooksStyle::~QCleanlooksStyle ()

Destroys the QCleanlooksStyle object.

void QCleanlooksStyle::drawItemText ( QPainter * painter, const QRect & rect, int alignment, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole ) const   [virtual]

Draws the text in rectangle rect using painter and palette pal.

Text is drawn using the painter's pen. If an explicit textRole is specified, then the text is drawn using the color specified in pal for the specified role. The enabled bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn.

The text is aligned and wrapped according to alignment.

Reimplemented from QStyle.

See also Qt::Alignment.


Copyright © 2006 Trolltech Trademarks
Qt 4.2.0-snapshot-20060701