QPalette Class Reference
The QPalette class contains color groups.
(details)
(complete member list)
#include <qpalette.h>
Public Members
- QPalette ()
- QPalette (const QColorGroup& normal, const QColorGroup& disabled, const QColorGroup& active)
- QPalette (const QPalette&)
- ~QPalette ()
- QPalette& operator= (const QPalette&)
- QPalette copy () const
- const QColorGroup& normal () const
- const QColorGroup& disabled () const
- const QColorGroup& active () const
- void setNormalColors (const QColorGroup&)
- void setDisabledColors (const QColorGroup&)
- void setActiveColors (const QColorGroup&)
- bool operator== (const QPalette& p) const
- bool operator!= (const QPalette& p) const
- long serialNumber () const
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QPalette &p)
- QDataStream & operator>> (QDataStream &s, QPalette &p)
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
Writes a palette to the stream.
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:
- qpalette.h: 1995/03/27
- qpalette.cpp: 1995/05/31
Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech