📄 qcolorgroup.html
字号:
Constructs a color group. You can pass either brushes, pixmaps orplain colors for <em>foreground</em>, <em>button</em>, <em>light</em>, <em>dark</em>, <em>mid</em>, <em>text</em>, <em>bright_text</em>, <em>base</em> and <em>background</em>.<p> <p>See also <a href="qbrush.html">QBrush</a>.<h3 class=fn><a name="QColorGroup-4"></a>QColorGroup::QColorGroup ( const <a href="qcolorgroup.html">QColorGroup</a> & other )</h3>Constructs a color group that is an independent copy of <em>other</em>.<h3 class=fn><a name="~QColorGroup"></a>QColorGroup::~QColorGroup ()</h3>Destroys the color group.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="background"></a>QColorGroup::background () const</h3><p> Returns the background color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="base"></a>QColorGroup::base () const</h3><p> Returns the base color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="brightText"></a>QColorGroup::brightText () const</h3><p> Returns the bright text foreground color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x233">themes/metal.cpp</a> and <a href="themes-example.html#x154">themes/wood.cpp</a>.<h3 class=fn>const <a href="qbrush.html">QBrush</a> & <a name="brush"></a>QColorGroup::brush ( <a href="qcolorgroup.html#ColorRole-enum">ColorRole</a> r ) const</h3>Returns the brush that has been set for color role <em>r</em>.<p> <p>See also <a href="#color">color</a>(), <a href="#setBrush">setBrush</a>() and <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x234">themes/metal.cpp</a> and <a href="themes-example.html#x155">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="button"></a>QColorGroup::button () const</h3><p> Returns the button color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x235">themes/metal.cpp</a> and <a href="themes-example.html#x156">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="buttonText"></a>QColorGroup::buttonText () const</h3><p> Returns the button text foreground color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x236">themes/metal.cpp</a> and <a href="themes-example.html#x157">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="color"></a>QColorGroup::color ( <a href="qcolorgroup.html#ColorRole-enum">ColorRole</a> r ) const</h3>Returns the color that has been set for color role <em>r</em>.<p> <p>See also <a href="#brush">brush</a>() and <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="dark"></a>QColorGroup::dark () const</h3><p> Returns the dark color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Example: <a href="themes-example.html#x158">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="foreground"></a>QColorGroup::foreground () const</h3><p> Returns the foreground color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x237">themes/metal.cpp</a> and <a href="themes-example.html#x159">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="highlight"></a>QColorGroup::highlight () const</h3><p> Returns the highlight color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="highlightedText"></a>QColorGroup::highlightedText () const</h3><p> Returns the highlighted text color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="light"></a>QColorGroup::light () const</h3><p> Returns the light color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Example: <a href="themes-example.html#x160">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="link"></a>QColorGroup::link () const</h3><p> Returns the unvisited link text color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="linkVisited"></a>QColorGroup::linkVisited () const</h3><p> Returns the visited link text color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="mid"></a>QColorGroup::mid () const</h3><p> Returns the mid color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="themes-example.html#x238">themes/metal.cpp</a> and <a href="themes-example.html#x161">themes/wood.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="midlight"></a>QColorGroup::midlight () const</h3><p> Returns the midlight color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>bool <a name="operator!-eq"></a>QColorGroup::operator!= ( const <a href="qcolorgroup.html">QColorGroup</a> & g ) const</h3><p> Returns TRUE if this color group is different from <em>g</em>; otherwisereturns FALSE.<p> <p>See also <h3 class=fn><a href="qcolorgroup.html">QColorGroup</a> & <a name="operator-eq"></a>QColorGroup::operator= ( const <a href="qcolorgroup.html">QColorGroup</a> & other )</h3>Copies the colors of <em>other</em> to this color group.<h3 class=fn>bool <a name="operator-eq-eq"></a>QColorGroup::operator== ( const <a href="qcolorgroup.html">QColorGroup</a> & g ) const</h3>Returns TRUE if this color group is equal to <em>g</em>; otherwisereturns FALSE.<p> <p>See also <h3 class=fn>void <a name="setBrush"></a>QColorGroup::setBrush ( <a href="qcolorgroup.html#ColorRole-enum">ColorRole</a> r, const <a href="qbrush.html">QBrush</a> & b )</h3>Sets the brush used for color role <em>r</em> to <em>b</em>.<p> <p>See also <a href="#brush">brush</a>(), <a href="#setColor">setColor</a>() and <a href="#ColorRole-enum">ColorRole</a>.<p>Example: <a href="themes-example.html#x162">themes/wood.cpp</a>.<h3 class=fn>void <a name="setColor"></a>QColorGroup::setColor ( <a href="qcolorgroup.html#ColorRole-enum">ColorRole</a> r, const <a href="qcolor.html">QColor</a> & c )</h3>Sets the brush used for color role <em>r</em> to a solid color <em>c</em>.<p> <p>See also <a href="#brush">brush</a>() and <a href="#ColorRole-enum">ColorRole</a>.<p>Examples: <a href="listviews-example.html#x321">listviews/listviews.cpp</a>, <a href="statistics-example.html#x2626">table/statistics/statistics.cpp</a> and <a href="themes-example.html#x239">themes/metal.cpp</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="shadow"></a>QColorGroup::shadow () const</h3><p> Returns the shadow color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<h3 class=fn>const <a href="qcolor.html">QColor</a> & <a name="text"></a>QColorGroup::text () const</h3><p> Returns the text foreground color of the color group.<p> <p>See also <a href="#ColorRole-enum">ColorRole</a>.<p>Example: <a href="listviews-example.html#x322">listviews/listviews.cpp</a>.<hr><h2>Related Functions</h2><h3 class=fn><a href="qdatastream.html">QDataStream</a> & <a name="operator-lt-lt"></a>operator<< ( <a href="qdatastream.html">QDataStream</a> & s, const <a href="qcolorgroup.html">QColorGroup</a> & g )</h3><p> Writes color group, <em>g</em> to the stream <em>s</em>.<p> <p>See also <a href="datastreamformat.html">Format of the QDataStream operators</a>.<!-- eof --><hr><p>This file is part of the <a href="index.html">Qt toolkit</a>.Copyright © 1995-2002<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center><table width=100% cellspacing=0 border=0><tr><td>Copyright © 2002 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align=right><div align=right>Qt version 3.0.5</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -