<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qpalette.cpp --> <head> <title>Qt 4.6: QColorGroup Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QColorGroup"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QColorGroup Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span> </h1> <p>The QColorGroup class contains color groups for each widget state. <a href="#details">More...</a></p> <pre> #include <QColorGroup></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qcolorgroup">Porting to Qt 4</a> for more information.</p> <p>Inherits <a href="qpalette.html">QPalette</a>.</p> <ul> <li><a href="qcolorgroup-members.html">List of all members, including inherited members</a></li> <li><a href="qcolorgroup-qt3.html">Qt 3 support members</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#QColorGroup">QColorGroup</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#QColorGroup-2">QColorGroup</a></b> ( const QBrush & <i>foreground</i>, const QBrush & <i>button</i>, const QBrush & <i>light</i>, const QBrush & <i>dark</i>, const QBrush & <i>mid</i>, const QBrush & <i>text</i>, const QBrush & <i>bright_text</i>, const QBrush & <i>base</i>, const QBrush & <i>background</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#QColorGroup-3">QColorGroup</a></b> ( const QColor & <i>foreground</i>, const QColor & <i>background</i>, const QColor & <i>light</i>, const QColor & <i>dark</i>, const QColor & <i>mid</i>, const QColor & <i>text</i>, const QColor & <i>base</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#QColorGroup-4">QColorGroup</a></b> ( const QColorGroup & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#QColorGroup-5">QColorGroup</a></b> ( const QPalette & <i>pal</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#operator-QVariant">operator QVariant</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#operator-not-eq">operator!=</a></b> ( const QColorGroup & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qcolorgroup.html#operator-eq-eq">operator==</a></b> ( const QColorGroup & <i>other</i> ) const</td></tr> </table> <ul> <li><div bar="2" class="fn"></div>39 public functions inherited from <a href="qpalette.html#public-functions">QPalette</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QColorGroup class contains color groups for each widget state.</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QColorGroup/QColorGroup"></a> <h3 class="fn"><a name="QColorGroup"></a>QColorGroup::QColorGroup ()</h3> <p>Use <a href="qpalette.html#QPalette">QPalette</a>() instead.</p> <h3 class="fn"><a name="QColorGroup-2"></a>QColorGroup::QColorGroup ( const <a href="qbrush.html">QBrush</a> & <i>foreground</i>, const <a href="qbrush.html">QBrush</a> & <i>button</i>, const <a href="qbrush.html">QBrush</a> & <i>light</i>, const <a href="qbrush.html">QBrush</a> & <i>dark</i>, const <a href="qbrush.html">QBrush</a> & <i>mid</i>, const <a href="qbrush.html">QBrush</a> & <i>text</i>, const <a href="qbrush.html">QBrush</a> & <i>bright_text</i>, const <a href="qbrush.html">QBrush</a> & <i>base</i>, const <a href="qbrush.html">QBrush</a> & <i>background</i> )</h3> <p>Use <a href="qpalette.html">QPalette</a>(<i>foreground</i>, <i>button</i>, <i>light</i>, <i>dark</i>, <i>mid</i>, <i>text</i>, <i>bright_text</i>, <i>base</i>, <i>background</i>) instead.</p> <h3 class="fn"><a name="QColorGroup-3"></a>QColorGroup::QColorGroup ( const <a href="qcolor.html">QColor</a> & <i>foreground</i>, const <a href="qcolor.html">QColor</a> & <i>background</i>, const <a href="qcolor.html">QColor</a> & <i>light</i>, const <a href="qcolor.html">QColor</a> & <i>dark</i>, const <a href="qcolor.html">QColor</a> & <i>mid</i>, const <a href="qcolor.html">QColor</a> & <i>text</i>, const <a href="qcolor.html">QColor</a> & <i>base</i> )</h3> <p>Use <a href="qcolorgroup.html" class="compat">QColorGroup</a>(<i>foreground</i>, <i>background</i>, <i>light</i>, <i>dark</i>, <i>mid</i>, <i>text</i>, <i>base</i>) instead.</p> <h3 class="fn"><a name="QColorGroup-4"></a>QColorGroup::QColorGroup ( const QColorGroup & <i>other</i> )</h3> <p>Use <a href="qpalette.html">QPalette</a>(<i>other</i>) instead.</p> <h3 class="fn"><a name="QColorGroup-5"></a>QColorGroup::QColorGroup ( const <a href="qpalette.html">QPalette</a> & <i>pal</i> )</h3> <p>Use <a href="qpalette.html">QPalette</a>(<i>pal</i>) instead.</p> <a name="//apple_ref/cpp/instm/QColorGroup/operator QVariant"></a> <h3 class="fn"><a name="operator-QVariant"></a>QColorGroup::operator QVariant () const</h3> <p>Returns the color group as a <a href="qvariant.html">QVariant</a></p> <a name="//apple_ref/cpp/instm/QColorGroup/operator!="></a> <h3 class="fn"><a name="operator-not-eq"></a>bool QColorGroup::operator!= ( const QColorGroup & <i>other</i> ) const</h3> <p>Returns true if this color group is not equal to <i>other</i>; otherwise returns false.</p> <a name="//apple_ref/cpp/instm/QColorGroup/operator=="></a> <h3 class="fn"><a name="operator-eq-eq"></a>bool QColorGroup::operator== ( const QColorGroup & <i>other</i> ) const</h3> <p>Returns true if this color group is equal to <i>other</i>; otherwise returns false.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>