QPalette Class Reference


The QPalette class contains color groups. (details) (complete member list)

#include <qpalette.h>

Public Members

Related Functions

(Note that these are not member functions.)

Detailed Description

The QPalette class contains color groups.

A palette has three color groups: a normal, a disabled and an active.

The active group is used for the widget in focus. Normally it contains the same colors as normal so as not to overwhelm the user, but if you need to you can change it.

The disabled group is used for widgets that are currently meaningless or inactive.

The normal color group is used in all other cases.

See also: QApplication::setPalette(), QWidget::setPalette(), QColorGroup and QColor.


Related Functions

QDataStream & operator<< (QDataStream &s, const QPalette &p)

Writes a palette to the stream.

QDataStream & operator>> (QDataStream &s, QPalette &p)

Reads a palette from the stream.


This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech