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

QColorGroup Class Reference
[QtGui module]

The QColorGroup class contains color groups for each widget state. More...

 #include <QColorGroup>

This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.

Inherits QPalette.

Public Functions


Detailed Description

The QColorGroup class contains color groups for each widget state.


Member Function Documentation

QColorGroup::QColorGroup ()

Use QPalette() instead.

QColorGroup::QColorGroup ( const QBrush & foreground, const QBrush & button, const QBrush & light, const QBrush & dark, const QBrush & mid, const QBrush & text, const QBrush & bright_text, const QBrush & base, const QBrush & background )

Use QPalette(foreground, button, light, dark, mid, text, bright_text, base, background) instead.

QColorGroup::QColorGroup ( const QColor & foreground, const QColor & background, const QColor & light, const QColor & dark, const QColor & mid, const QColor & text, const QColor & base )

Use QColorGroup(foreground, background, light, dark, mid, text, base) instead.

QColorGroup::QColorGroup ( const QColorGroup & other )

Use QPalette(other) instead.

QColorGroup::QColorGroup ( const QPalette & pal )

Use QPalette(pal) instead.

QColorGroup::operator QVariant () const

Returns the color group as a QVariant

bool QColorGroup::operator!= ( const QColorGroup & other ) const

Returns true if this color group is not equal to other; otherwise returns false.

bool QColorGroup::operator== ( const QColorGroup & other ) const

Returns true if this color group is equal to other; otherwise returns false.


Member Function Documentation

const QColor & QColorGroup::background () const

Use QPalette::window().color() instead.

const QColor & QColorGroup::base () const

Use QPalette::base().color() instead.

const QColor & QColorGroup::brightText () const

Use QPalette::brightText().color() instead.

const QColor & QColorGroup::button () const

Use QPalette::button().color() instead.

const QColor & QColorGroup::buttonText () const

Use QPalette::buttonText().color() instead.

const QColor & QColorGroup::dark () const

Use QPalette::dark().color() instead.

const QColor & QColorGroup::foreground () const

Use QPalette::windowText().color() instead.

const QColor & QColorGroup::highlight () const

Use QPalette::highlight().color() instead.

const QColor & QColorGroup::highlightedText () const

Use QPalette::highlightedText().color() instead.

const QColor & QColorGroup::light () const

Use QPalette::light().color() instead.

const QColor & QColorGroup::link () const

Use QPalette::link().color() instead.

const QColor & QColorGroup::linkVisited () const

Use QPalette::linkVisited().color() instead.

const QColor & QColorGroup::mid () const

Use QPalette::mid().color() instead.

const QColor & QColorGroup::midlight () const

Use QPalette::midlight().color() instead.

const QColor & QColorGroup::shadow () const

Use QPalette::shadow().color() instead.

const QColor & QColorGroup::text () const

Use QPalette::text().color() instead.


Related Non-Members

QDataStream & operator<< ( QDataStream & ds, const QColorGroup & colorGroup )

This is an overloaded member function, provided for convenience.

QDataStream & operator>> ( QDataStream & ds, QColorGroup & colorGroup )

This is an overloaded member function, provided for convenience.


Copyright © 2007 Trolltech Trademarks
Qt 4.2.3