# QColor Class Reference
## [[QtGui](index.htm) module]
的而QColor類提供基于RGB , HSV或CMYK值的顏色。[More...](#details)
### Types
* `enum Spec { Invalid, Rgb, Hsv, Cmyk, Hsl }`
### Methods
* `__init__ (self, Qt.GlobalColor?color)`
* `__init__ (self, int?rgb)`
* `__init__ (self, QVariant?variant)`
* `__init__ (self)`
* `__init__ (self, int?r, int?g, int?b, int?alpha?=?255)`
* `__init__ (self, QString?aname)`
* `__init__ (self, QColor?acolor)`
* `int alpha (self)`
* `float alphaF (self)`
* `int black (self)`
* `float blackF (self)`
* `int blue (self)`
* `float blueF (self)`
* `QColor convertTo (self, Spec?colorSpec)`
* `int cyan (self)`
* `float cyanF (self)`
* `QColor dark (self, int?factor?=?200)`
* `QColor darker (self, int?factor?=?200)`
* `(int?c, int?m, int?y, int?k, int?alpha) getCmyk (self)`
* `(float?c, float?m, float?y, float?k, float?alpha) getCmykF (self)`
* `(int?h, int?s, int?l, int?alpha) getHsl (self)`
* `(float?h, float?s, float?l, float?alpha) getHslF (self)`
* `(int?h, int?s, int?v, int?alpha) getHsv (self)`
* `(float?h, float?s, float?v, float?alpha) getHsvF (self)`
* `(int?r, int?g, int?b, int?alpha) getRgb (self)`
* `(float?r, float?g, float?b, float?alpha) getRgbF (self)`
* `int green (self)`
* `float greenF (self)`
* `int hslHue (self)`
* `float hslHueF (self)`
* `int hslSaturation (self)`
* `float hslSaturationF (self)`
* `int hsvHue (self)`
* `float hsvHueF (self)`
* `int hsvSaturation (self)`
* `float hsvSaturationF (self)`
* `int hue (self)`
* `float hueF (self)`
* `bool isValid (self)`
* `QColor light (self, int?factor?=?150)`
* `QColor lighter (self, int?factor?=?150)`
* `int lightness (self)`
* `float lightnessF (self)`
* `int magenta (self)`
* `float magentaF (self)`
* `QString name (self)`
* `int red (self)`
* `float redF (self)`
* `int rgb (self)`
* `int rgba (self)`
* `int saturation (self)`
* `float saturationF (self)`
* `setAlpha (self, int?alpha)`
* `setAlphaF (self, float?alpha)`
* `setBlue (self, int?blue)`
* `setBlueF (self, float?blue)`
* `setCmyk (self, int?c, int?m, int?y, int?k, int?alpha?=?255)`
* `setCmykF (self, float?c, float?m, float?y, float?k, float?alpha?=?1)`
* `setGreen (self, int?green)`
* `setGreenF (self, float?green)`
* `setHsl (self, int?h, int?s, int?l, int?alpha?=?255)`
* `setHslF (self, float?h, float?s, float?l, float?alpha?=?1)`
* `setHsv (self, int?h, int?s, int?v, int?alpha?=?255)`
* `setHsvF (self, float?h, float?s, float?v, float?alpha?=?1)`
* `setNamedColor (self, QString?name)`
* `setRed (self, int?red)`
* `setRedF (self, float?red)`
* `setRgb (self, int?r, int?g, int?b, int?alpha?=?255)`
* `setRgb (self, int?rgb)`
* `setRgba (self, int?rgba)`
* `setRgbF (self, float?r, float?g, float?b, float?alpha?=?1)`
* `Spec spec (self)`
* `QColor toCmyk (self)`
* `QColor toHsl (self)`
* `QColor toHsv (self)`
* `QColor toRgb (self)`
* `int value (self)`
* `float valueF (self)`
* `int yellow (self)`
* `float yellowF (self)`
### Static Methods
* `bool allowX11ColorNames ()`
* `QStringList colorNames ()`
* `QColor fromCmyk (int?c, int?m, int?y, int?k, int?alpha?=?255)`
* `QColor fromCmykF (float?c, float?m, float?y, float?k, float?alpha?=?1)`
* `QColor fromHsl (int?h, int?s, int?l, int?alpha?=?255)`
* `QColor fromHslF (float?h, float?s, float?l, float?alpha?=?1)`
* `QColor fromHsv (int?h, int?s, int?v, int?alpha?=?255)`
* `QColor fromHsvF (float?h, float?s, float?v, float?alpha?=?1)`
* `QColor fromRgb (int?rgb)`
* `QColor fromRgb (int?r, int?g, int?b, int?alpha?=?255)`
* `QColor fromRgba (int?rgba)`
* `QColor fromRgbF (float?r, float?g, float?b, float?alpha?=?1)`
* `bool isValidColor (QString?name)`
* `setAllowX11ColorNames (bool?enabled)`
### Special Methods
* `bool __eq__ (self, QColor?c)`
* `bool __ne__ (self, QColor?c)`
* * *
## Detailed Description
這個類可以醃制。
A [Qt.GlobalColor](qt.html#GlobalColor-enum)可用于每當一個[QColor](qcolor.html)預計。
的而QColor類提供基于RGB , HSV或CMYK值的顏色。
顏色是在RGB(紅色,綠色和藍色)分量方面通常指定的,但它也可能在HSV (色調,飽和度和值)和CMYK方面指定(青色,洋紅色,黃色和黑色)組件。在另外一個顏色可以使用顏色名稱來指定。顏色名稱可以是任何的SVG 1.0顏色名稱。
| RGB | HSV | CMYK |
| --- | --- | --- |
|  |  |  |
基于RGB值,而QColor構造函數創建的顏色。要創建基于兩種HSV或CMYK值而QColor ,使用[toHsv](qcolor.html#toHsv)()和[toCmyk](qcolor.html#toCmyk)( )分別為功能。這些函數返回使用所需格式的顏色的副本。除了靜態[fromRgb](qcolor.html#fromRgb)( )[fromHsv](qcolor.html#fromHsv)()和[fromCmyk](qcolor.html#fromCmyk)( )函數從指定的值來創建顏色。可替換地,顏色可以被轉換為任何使用三種格式的[convertTo](qcolor.html#convertTo)()函數(返回所需格式的彩色復印件) ,或任何[setRgb](qcolor.html#setRgb)( )[setHsv](qcolor.html#setHsv)()和[setCmyk](qcolor.html#setCmyk)( )函數改變_this_顏色的格式。該[spec](qcolor.html#spec)( )函數告訴的顏色是如何規定的。
顏色可以通過傳遞一個RGB字符串(如“ # 112233 ” ) ,或顏色名稱(如“藍” ) ,到被設置[setNamedColor](qcolor.html#setNamedColor)()函數。顏色名稱取自SVG 1.0顏色名稱。該[name](qcolor.html#name)( )函數返回的格式為“#RRGGBB ”顏色的名字。顏色也可以通過使用設置[setRgb](qcolor.html#setRgb)( )[setHsv](qcolor.html#setHsv)()和[setCmyk](qcolor.html#setCmyk)( ) 。為了得到一個較亮或較暗的顏色使用[lighter](qcolor.html#lighter)()和[darker](qcolor.html#darker)( )分別為功能。
該[isValid](qcolor.html#isValid)( )函數表示而QColor是否是合法的。例如, RGB顏色與RGB值超出范圍是違法的。出于性能原因,而QColor大多無視非法的顏色,因為這個原因,使用了無效的顏色的結果是不確定的。
色分量可分別被檢索,例如,使用[red](qcolor.html#red)( )[hue](qcolor.html#hue)()和[cyan](qcolor.html#cyan)( ) 。也可以使用檢索一氣呵成的顏色分量的值的[getRgb](qcolor.html#getRgb)( )[getHsv](qcolor.html#getHsv)()和[getCmyk](qcolor.html#getCmyk)()函數。使用RGB顏色模型中,顏色分量,另外可以與訪問[rgb](qcolor.html#rgb)( ) 。
有幾個相關的非會員:[QRgb](qcolor.html#QRgb-typedef)是typdef為一個unsigned int表示的RGB值三元( R, G,B ) 。請注意,它也可以容納的alpha通道的值(有關詳細信息,請參閱[Alpha-Blended Drawing](#alpha-blended-drawing)節)。該[qRed](index.htm#qRed)( )[qBlue](index.htm#qBlue)()和[qGreen](index.htm#qGreen)( )函數返回給定的相應組件[QRgb](qcolor.html#QRgb-typedef)值,而[qRgb](index.htm#qRgb)()和[qRgba](index.htm#qRgba)( )函數創建并返回[QRgb](qcolor.html#QRgb-typedef)根據給定的元件值三元組。最后,該[qAlpha](index.htm#qAlpha)( )函數返回所提供的alpha分量[QRgb](qcolor.html#QRgb-typedef)和[qGray](index.htm#qGray)()函數計算并返回基于給定值的灰度值。
而QColor是平臺和設備無關。該[QColormap](index.htm)類的顏色映射到硬件。
有關油畫一般的詳細信息,請參閱[Paint System](index.htm)文檔。
### Integer vs. Floating Point Precision
而QColor支持浮點精度,并提供所有的顏色分量函數的浮點版本,例如:[getRgbF](qcolor.html#getRgbF)( )[hueF](qcolor.html#hueF)()和[fromCmykF](qcolor.html#fromCmykF)( ) 。注意,由于該部件在使用16位整數存儲,有可能是使用例如設置的值之間的微小偏差,[setRgbF](qcolor.html#setRgbF)()和由返回的值[getRgbF](qcolor.html#getRgbF)( )函數由于四舍五入。
而整數根據功能需要在0-255范圍內的值(除[hue](qcolor.html#hue)(),它必須在0-359范圍內的值) ,浮點函數接受的范圍值0.0 - 1.0 。
### Alpha-Blended Drawing
而QColor還支持alpha混合大綱和灌裝。顏色的Alpha通道指定了透明效果, 0表示完全透明的顏色,而255表示完全不透明的顏色。例如:
```
// Specify semi-transparent red
painter.setBrush(QColor(255, 0, 0, 127));
painter.drawRect(0, 0, width()/2, height());
// Specify semi-transparent blue
painter.setBrush(QColor(0, 0, 255, 127));
painter.drawRect(0, 0, width(), height()/2);
```
上面的代碼將產生以下輸出:

Alpha混合繪圖支持在Windows,Mac OS X和在具有在X渲染擴展安裝X11系統。
顏色的Alpha通道可以檢索和使用設置[alpha](qcolor.html#alpha)()和[setAlpha](qcolor.html#setAlpha)如果()函數的值是一個整數,并[alphaF](qcolor.html#alphaF)()和[setAlphaF](qcolor.html#setAlphaF)( )如果它的值是QREAL (雙) 。默認情況下, alpha通道被設置為255 (不透明) 。檢索和設置_all_RGB顏色組件(包括Alpha通道)一氣呵成,使用[rgba](qcolor.html#rgba)()和[setRgba](qcolor.html#setRgba)()函數。
### Predefined Colors
有由所描述的20預定QColors[Qt.GlobalColor](qt.html#GlobalColor-enum)枚舉,包括黑色,白色,小學和中學的顏色,顏色較深的版本的這些顏色和三種深淺灰色的。而QColor還認識了各種顏色的名稱;靜[colorNames](qcolor.html#colorNames)( )函數返回一個[QStringList](qstringlist.html)顏色的名稱而QColor知道。

此外,該[Qt.color0](qt.html#GlobalColor-enum),[Qt.color1](qt.html#GlobalColor-enum)和[Qt.transparent](qt.html#GlobalColor-enum)顏色用于特殊用途。
[Qt.color0](qt.html#GlobalColor-enum)(零像素值),并[Qt.color1](qt.html#GlobalColor-enum)(非零像素值)是特殊的顏色用于QBitmaps繪制。與繪畫[Qt.color0](qt.html#GlobalColor-enum)設置位圖位為0(透明的,也就是說,背景) ,并用繪畫[Qt.color1](qt.html#GlobalColor-enum)設置比特為1(不透明,即,前景) 。
[Qt.transparent](qt.html#GlobalColor-enum)用于指示一個透明像素。當用該值畫,像素值將被使用適合于所使用的底層像素格式。
### The HSV Color Model
RGB模式是面向硬件。其代表性接近大多數顯示器顯示。與此相反, HSV表示的方式更適合于人的感知顏色的顏色。例如,關系“強于”,“比暗” ,和“相反的”容易地表達在HSV但更難于RGB來表示。
單純皰疹病毒,如RGB ,有三個組成部分:
* H, for hue, is in the range 0 to 359 if the color is chromatic (not gray), or meaningless if it is gray. It represents degrees on the color wheel familiar to most people. Red is 0 (degrees), green is 120, and blue is 240.

* S, for saturation, is in the range 0 to 255, and the bigger it is, the stronger the color is. Grayish colors have saturation near 0; very strong colors have saturation near 255.

* V, for value, is in the range 0 to 255 and represents lightness or brightness of the color. 0 is black; 255 is as far from black as possible.

下面是一些例子:純紅色是H = 0 , S = 255 ,V = 255 ;暗紅色,稍走向洋紅色,可為H = 350 (相當于-10 ) , S = 255 ,V = 180 ;一個淺灰色的淡紅色可配H約0 (比如350-359或0-10) ,S 50-100 ,和S = 255 。
Qt的返回無彩色-1的色調值。如果你傳遞一個色調值過大, Qt的強制它進入范圍。順化360或720被視為0 ;色相540被視為180 。
除了標準的HSV模型, Qt提供了一個alpha通道,以功能[alpha-blended drawing](#alpha-blended-drawing)。
### The HSL Color Model
HSL類似于單純皰疹病毒。而不是從HSV值參數, HSL具有亮度參數。亮度參數去從黑色到顏色,從顏色為白色。如果你在晚上的黑色或暗灰色到外面去。在一天其豐富多彩的,但如果你看一下在一個真正強大的光的事情,他們要白洗了。
### The CMYK Color Model
而RGB和HSV顏色模型用于顯示在電腦螢幕上, CMYK模型是用在印刷機和一些硬拷貝設備的四色印刷工藝。
CMYK四部分組成,全部在范圍0-255 :青色(C ) ,品紅(M ) ,黃色(Y)和黑色(K ) 。青色,品紅色和黃色的被稱為減色; CMYK顏色模型由開始的白色表面,然后通過應用適當的部件中減去顏色產生的顏色。同時結合青色,品紅色和黃色給人的色黑,減去一個或多個將產生的任何其他顏色。當在不同的百分比相結合,這三種顏色可以創造顏色的整個頻譜。
將100 %的青色,品紅和黃色_does_產生黑色,但結果并不理想,因為它浪費墨水,增加了干燥時間,并且在打印時給出了一個泥濘的顏色。出于這個原因,黑是專業的印刷加提供了堅實的黑色調,因此稱為“四色” 。
除了標準的CMYK模型, Qt提供了一個alpha通道,以功能[alpha-blended drawing](#alpha-blended-drawing)。
* * *
## Type Documentation
```
QColor.Spec
```
指定顏色的類型,可以是RGB , HSV , CMYK或HSL 。
| Constant | Value |
| --- | --- |
| `QColor.Rgb` | `1` |
| `QColor.Hsv` | `2` |
| `QColor.Cmyk` | `3` |
| `QColor.Hsl` | `4` |
| `QColor.Invalid` | `0` |
**See also** [spec](qcolor.html#spec)()和[convertTo](qcolor.html#convertTo)( ) 。
* * *
## Method Documentation
```
QColor.__init__ (self, Qt.GlobalColor?color)
```
構建了一個無效的顏色的RGB值(0,0 ,0)。無效的顏色是沒有正確設置為底層窗口系統的顏色。
無效的顏色的Alpha值是不確定的。
**See also** [isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self, int?rgb)
```
構造一個具有RGB值的顏色_r_,_g_,_b_和的alpha通道(透明度)值_a_。
顏色是左無效的,如果任何參數是無效的。
**See also** [setRgba](qcolor.html#setRgba)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self, QVariant?variant)
```
構造一個顏色的值_color_。 alpha組件將被忽略并設置為固體。
**See also** [fromRgb](qcolor.html#fromRgb)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self)
```
構造一個命名的顏色以同樣的方式為[setNamedColor](qcolor.html#setNamedColor)()用給定的_name_。
顏色是左無效的,如果_name_不能被解析。
**See also** [setNamedColor](qcolor.html#setNamedColor)( )[name](qcolor.html#name)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self, int?r, int?g, int?b, int?alpha?=?255)
```
構造一個命名的顏色以同樣的方式為[setNamedColor](qcolor.html#setNamedColor)()用給定的_name_。
顏色是左無效的,如果_name_不能被解析。
**See also** [setNamedColor](qcolor.html#setNamedColor)( )[name](qcolor.html#name)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self, QString?aname)
```
構造一個顏色,是副本_color_。
**See also** [isValid](qcolor.html#isValid)( ) 。
```
QColor.__init__ (self, QColor?acolor)
```
```
bool QColor.allowX11ColorNames ()
```
返回True如果[setNamedColor](qcolor.html#setNamedColor)( )是允許查找顏色的X11顏色數據庫。默認情況下,這個函數返回False 。
**Note:**此功能僅可在X11平臺上。
**See also** [setAllowX11ColorNames](qcolor.html#setAllowX11ColorNames)( ) 。
```
int QColor.alpha (self)
```
返回此顏色的Alpha顏色分量。
**See also** [setAlpha](qcolor.html#setAlpha)( )[alphaF](qcolor.html#alphaF)()和[Alpha-Blended Drawing](qcolor.html#alpha-blended-drawing)。
```
float QColor.alphaF (self)
```
返回此顏色的Alpha顏色分量。
**See also** [setAlphaF](qcolor.html#setAlphaF)( )[alpha](qcolor.html#alpha)()和[Alpha-Blended Drawing](qcolor.html#alpha-blended-drawing)。
```
int QColor.black (self)
```
返回該顏色的黑色成分。
**See also** [blackF](qcolor.html#blackF)( )[getCmyk](qcolor.html#getCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
float QColor.blackF (self)
```
返回該顏色的黑色成分。
**See also** [black](qcolor.html#black)( )[getCmykF](qcolor.html#getCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
int QColor.blue (self)
```
返回該顏色的藍色分量。
**See also** [setBlue](qcolor.html#setBlue)( )[blueF](qcolor.html#blueF)()和[getRgb](qcolor.html#getRgb)( ) 。
```
float QColor.blueF (self)
```
返回該顏色的藍色分量。
**See also** [setBlueF](qcolor.html#setBlueF)( )[blue](qcolor.html#blue)()和[getRgbF](qcolor.html#getRgbF)( ) 。
```
QStringList QColor.colorNames ()
```
返回[QStringList](qstringlist.html)包含顏色名稱的Qt知道。
**See also** [Predefined Colors](qcolor.html#predefined-colors)。
```
QColor QColor.convertTo (self, Spec?colorSpec)
```
[
創建副本_this_顏色在由指定的格式_colorSpec_。
](qcolor.html)
[**See also**](qcolor.html) [spec](qcolor.html#spec)( )[toCmyk](qcolor.html#toCmyk)( )[toHsv](qcolor.html#toHsv)( )[toRgb](qcolor.html#toRgb)()和[isValid](qcolor.html#isValid)( ) 。
```
int QColor.cyan (self)
```
返回該顏色的青色成分。
**See also** [cyanF](qcolor.html#cyanF)( )[getCmyk](qcolor.html#getCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
float QColor.cyanF (self)
```
返回該顏色的青色成分。
**See also** [cyan](qcolor.html#cyan)( )[getCmykF](qcolor.html#getCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor QColor.dark (self, int?factor?=?200)
```
[](qcolor.html)
```
QColor QColor.darker (self, int?factor?=?200)
```
[
返回一個暗(或亮)色,但不改變這個對象。
](qcolor.html)
[如果_factor_大于100時,這個函數返回一個較深的顏色。環境_factor_到300返回具有三分之一的亮度的顏色。如果_factor_小于100 ,則返回的顏色很淺,但我們建議使用](qcolor.html)[lighter](qcolor.html#lighter)()函數,用于這一目的。如果_factor_為0或負數,則返回值是不確定的。
該功能可將當前的RGB顏色轉換到HSV ,通過劃分值(V )組件_factor_和顏色轉換回RGB 。
此功能被引入Qt的4.3 。
**See also** [lighter](qcolor.html#lighter)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromCmyk (int?c, int?m, int?y, int?k, int?alpha?=?255)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從給定的CMYK色彩值構造:_c_(青色) ,_m_(品紅色),_y_(黃色),_k_(黑色),并_a_( α-信道,即,透明性) 。
所有的值必須在0-255范圍內。
**See also** [toCmyk](qcolor.html#toCmyk)( )[fromCmykF](qcolor.html#fromCmykF)( )[isValid](qcolor.html#isValid)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor QColor.fromCmykF (float?c, float?m, float?y, float?k, float?alpha?=?1)
```
[
這是一個重載函數。
](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從給定的CMYK色彩值構造:_c_(青色) ,_m_(品紅色),_y_(黃色),_k_(黑色),并_a_( α-信道,即,透明性) 。
所有的值必須在0.0-1.0范圍內。
**See also** [toCmyk](qcolor.html#toCmyk)( )[fromCmyk](qcolor.html#fromCmyk)( )[isValid](qcolor.html#isValid)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor QColor.fromHsl (int?h, int?s, int?l, int?alpha?=?255)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從HSV顏色值組成,_h_(色調) ,_s_(飽和度) ,_l_(亮度),和_a_( α-信道,即,透明性) 。
價值_s_,_l_和_a_都必須在0-255范圍內;價值_h_必須在0-359的范圍。
此功能被引入Qt的4.6 。
**See also** [toHsl](qcolor.html#toHsl)( )[fromHslF](qcolor.html#fromHslF)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromHslF (float?h, float?s, float?l, float?alpha?=?1)
```
[
這是一個重載函數。
](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從HSV顏色值組成,_h_(色調) ,_s_(飽和度) ,_l_(亮度),和_a_( α-信道,即,透明性) 。
所有的值必須在0.0-1.0范圍內。
此功能被引入Qt的4.6 。
**See also** [toHsl](qcolor.html#toHsl)( )[fromHsl](qcolor.html#fromHsl)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromHsv (int?h, int?s, int?v, int?alpha?=?255)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從HSV顏色值組成,_h_(色調) ,_s_(飽和度) ,_v_(值),_a_( α-信道,即,透明性) 。
價值_s_,_v_和_a_都必須在0-255范圍內;價值_h_必須在0-359的范圍。
**See also** [toHsv](qcolor.html#toHsv)( )[fromHsvF](qcolor.html#fromHsvF)( )[isValid](qcolor.html#isValid)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor QColor.fromHsvF (float?h, float?s, float?v, float?alpha?=?1)
```
[
這是一個重載函數。
](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從HSV顏色值組成,_h_(色調) ,_s_(飽和度) ,_v_(值),_a_( α-信道,即,透明性) 。
所有的值必須在0.0-1.0范圍內。
**See also** [toHsv](qcolor.html#toHsv)( )[fromHsv](qcolor.html#fromHsv)( )[isValid](qcolor.html#isValid)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor QColor.fromRgb (int?rgb)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從給定的構造[QRgb](qcolor.html#QRgb-typedef)值_rgb_。
的alpha分量_rgb_被忽略(即,它會自動設置為255 ) ,使用[fromRgba](qcolor.html#fromRgba)()函數,包括由給定指定的alpha通道[QRgb](qcolor.html#QRgb-typedef)值。
**See also** [fromRgba](qcolor.html#fromRgba)( )[fromRgbF](qcolor.html#fromRgbF)( )[toRgb](qcolor.html#toRgb)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromRgb (int?r, int?g, int?b, int?alpha?=?255)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從RGB顏色值構造,_r_(紅色),_g_(綠色) ,_b_(藍色),并_a_( α-信道,即,透明性) 。
所有的值必須在0-255范圍內。
**See also** [toRgb](qcolor.html#toRgb)( )[fromRgbF](qcolor.html#fromRgbF)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromRgba (int?rgba)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從給定的構造[QRgb](qcolor.html#QRgb-typedef)值_rgba_。
不同的是[fromRgb](qcolor.html#fromRgb)()函數,由給定的指定的alpha通道[QRgb](qcolor.html#QRgb-typedef)值被包括在內。
**See also** [fromRgb](qcolor.html#fromRgb)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.fromRgbF (float?r, float?g, float?b, float?alpha?=?1)
```
[](qcolor.html)
[靜態方便函數返回一個](qcolor.html)[QColor](qcolor.html)從RGB顏色值構造,_r_(紅色),_g_(綠色) ,_b_(藍色),并_a_( α-信道,即,透明性) 。
所有的值必須在0.0-1.0范圍內。
**See also** [fromRgb](qcolor.html#fromRgb)( )[toRgb](qcolor.html#toRgb)()和[isValid](qcolor.html#isValid)( ) 。
```
(int?c, int?m, int?y, int?k, int?alpha) QColor.getCmyk (self)
```
設置指向的內容_c_,_m_,_y_,_k_和_a_,青色,品紅色,色彩的CMYK值的黃色,黑色,和alpha通道(透明度)的組件。
這些成分可以單獨使用檢索到的[cyan](qcolor.html#cyan)( )[magenta](qcolor.html#magenta)( )[yellow](qcolor.html#yellow)( )[black](qcolor.html#black)()和[alpha](qcolor.html#alpha)()函數。
**See also** [setCmyk](qcolor.html#setCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
(float?c, float?m, float?y, float?k, float?alpha) QColor.getCmykF (self)
```
設置指向的內容_c_,_m_,_y_,_k_和_a_,青色,品紅色,色彩的CMYK值的黃色,黑色,和alpha通道(透明度)的組件。
這些成分可以單獨使用檢索到的[cyanF](qcolor.html#cyanF)( )[magentaF](qcolor.html#magentaF)( )[yellowF](qcolor.html#yellowF)( )[blackF](qcolor.html#blackF)()和[alphaF](qcolor.html#alphaF)()函數。
**See also** [setCmykF](qcolor.html#setCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
(int?h, int?s, int?l, int?alpha) QColor.getHsl (self)
```
設置指向的內容_h_,_s_,_l_和_a_,對顏色的HSL值的色相,飽和度,明度,和alpha通道(透明度)的組件。
這些組件可以檢索單獨使用hueHsl () , saturationHsl () ,[lightness](qcolor.html#lightness)()和[alpha](qcolor.html#alpha)()函數。
此功能被引入Qt的4.6 。
**See also** [setHsl](qcolor.html#setHsl)( ) 。
```
(float?h, float?s, float?l, float?alpha) QColor.getHslF (self)
```
設置指向的內容_h_,_s_,_l_和_a_,對顏色的HSL值的色相,飽和度,明度,和alpha通道(透明度)的組件。
這些組件可以檢索單獨使用hueHslF () , saturationHslF () ,[lightnessF](qcolor.html#lightnessF)()和[alphaF](qcolor.html#alphaF)()函數。
此功能被引入Qt的4.6 。
**See also** [setHsl](qcolor.html#setHsl)( ) 。
```
(int?h, int?s, int?v, int?alpha) QColor.getHsv (self)
```
設置指向的內容_h_,_s_,_v_和_a_,對顏色的HSV值的色相,飽和度,值和alpha通道(透明度)的組件。
這些成分可以單獨使用檢索到的[hue](qcolor.html#hue)( )[saturation](qcolor.html#saturation)( )[value](qcolor.html#value)()和[alpha](qcolor.html#alpha)()函數。
**See also** [setHsv](qcolor.html#setHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
(float?h, float?s, float?v, float?alpha) QColor.getHsvF (self)
```
設置指向的內容_h_,_s_,_v_和_a_,對顏色的HSV值的色相,飽和度,值和alpha通道(透明度)的組件。
這些成分可以單獨使用檢索到的[hueF](qcolor.html#hueF)( )[saturationF](qcolor.html#saturationF)( )[valueF](qcolor.html#valueF)()和[alphaF](qcolor.html#alphaF)()函數。
**See also** [setHsv](qcolor.html#setHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
(int?r, int?g, int?b, int?alpha) QColor.getRgb (self)
```
設置指向的內容_r_,_g_,_b_和_a_,以紅,綠,藍和alpha通道(透明度)的顏色的RGB值的組件。
這些成分可以單獨使用檢索到的[red](qcolor.html#red)( )[green](qcolor.html#green)( )[blue](qcolor.html#blue)()和[alpha](qcolor.html#alpha)()函數。
**See also** [rgb](qcolor.html#rgb)()和[setRgb](qcolor.html#setRgb)( ) 。
```
(float?r, float?g, float?b, float?alpha) QColor.getRgbF (self)
```
設置指向的內容_r_,_g_,_b_和_a_,以紅,綠,藍和alpha通道(透明度)的顏色的RGB值的組件。
這些成分可以單獨使用檢索到的[redF](qcolor.html#redF)( )[greenF](qcolor.html#greenF)( )[blueF](qcolor.html#blueF)()和[alphaF](qcolor.html#alphaF)()函數。
**See also** [rgb](qcolor.html#rgb)()和[setRgb](qcolor.html#setRgb)( ) 。
```
int QColor.green (self)
```
返回該顏色的綠色分量。
**See also** [setGreen](qcolor.html#setGreen)( )[greenF](qcolor.html#greenF)()和[getRgb](qcolor.html#getRgb)( ) 。
```
float QColor.greenF (self)
```
返回該顏色的綠色分量。
**See also** [setGreenF](qcolor.html#setGreenF)( )[green](qcolor.html#green)()和[getRgbF](qcolor.html#getRgbF)( ) 。
```
int QColor.hslHue (self)
```
返回該顏色的色調色彩分量。
此功能被引入Qt的4.6 。
**See also** [getHslF](qcolor.html#getHslF)()和[getHsl](qcolor.html#getHsl)( ) 。
```
float QColor.hslHueF (self)
```
返回該顏色的色調色彩分量。
此功能被引入Qt的4.6 。
**See also** [hue](qcolor.html#hue)()和[getHslF](qcolor.html#getHslF)( ) 。
```
int QColor.hslSaturation (self)
```
返回該顏色的飽和度色彩分量。
此功能被引入Qt的4.6 。
**See also** [saturationF](qcolor.html#saturationF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.hslSaturationF (self)
```
返回該顏色的飽和度色彩分量。
此功能被引入Qt的4.6 。
**See also** [saturationF](qcolor.html#saturationF)()和[getHslF](qcolor.html#getHslF)( ) 。
```
int QColor.hsvHue (self)
```
返回該顏色的色調色彩分量。
**See also** [hueF](qcolor.html#hueF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.hsvHueF (self)
```
返回該顏色的色調色彩分量。
**See also** [hue](qcolor.html#hue)( )[getHsvF](qcolor.html#getHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
int QColor.hsvSaturation (self)
```
返回該顏色的飽和度色彩分量。
**See also** [saturationF](qcolor.html#saturationF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.hsvSaturationF (self)
```
返回該顏色的飽和度色彩分量。
**See also** [saturation](qcolor.html#saturation)( )[getHsvF](qcolor.html#getHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
int QColor.hue (self)
```
返回該顏色的色調色彩分量。
顏色是隱式轉換到HSV 。
**See also** [hsvHue](qcolor.html#hsvHue)( )[hueF](qcolor.html#hueF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.hueF (self)
```
返回該顏色的色調色彩分量。
顏色是隱式轉換到HSV 。
**See also** [hsvHueF](qcolor.html#hsvHueF)( )[hue](qcolor.html#hue)( )[getHsvF](qcolor.html#getHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
bool QColor.isValid (self)
```
返回True如果顏色是有效的,否則返回False 。
```
bool QColor.isValidColor (QString?name)
```
返回True如果_name_是有效的顏色名稱和可用于構造一個有效的[QColor](qcolor.html)對象,否則返回False 。
它使用在所使用的算法相同[setNamedColor](qcolor.html#setNamedColor)( ) 。
此功能被引入Qt的4.7 。
**See also** [setNamedColor](qcolor.html#setNamedColor)( ) 。
```
QColor QColor.light (self, int?factor?=?150)
```
[](qcolor.html)
```
QColor QColor.lighter (self, int?factor?=?150)
```
[
返回一個打火機(或較暗)的顏色,但不改變這個對象。
](qcolor.html)
[如果_factor_大于100時,這個函數返回一個較淺的顏色。環境_factor_150返回一個顏色是亮50 % 。如果_factor_小于100 ,則返回顏色比較深,但我們建議使用](qcolor.html)[darker](qcolor.html#darker)()函數,用于這一目的。如果_factor_為0或負數,則返回值是不確定的。
該功能可將當前的RGB顏色轉換到HSV ,通過乘以值(V )組件_factor_和顏色轉換回RGB 。
此功能被引入Qt的4.3 。
**See also** [darker](qcolor.html#darker)()和[isValid](qcolor.html#isValid)( ) 。
```
int QColor.lightness (self)
```
返回該顏色的明度色彩分量。
此功能被引入Qt的4.6 。
**See also** [lightnessF](qcolor.html#lightnessF)() and [getHsl](qcolor.html#getHsl)().
```
float QColor.lightnessF (self)
```
返回該顏色的明度色彩分量。
此功能被引入Qt的4.6 。
**See also** [value](qcolor.html#value)()和[getHslF](qcolor.html#getHslF)( ) 。
```
int QColor.magenta (self)
```
返回該顏色的品紅色分量。
**See also** [magentaF](qcolor.html#magentaF)( )[getCmyk](qcolor.html#getCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
float QColor.magentaF (self)
```
返回該顏色的品紅色分量。
**See also** [magenta](qcolor.html#magenta)( )[getCmykF](qcolor.html#getCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QString QColor.name (self)
```
返回格式為“ # RRGGBB ”顏色的名稱,即一個“#”字符后跟三個兩位十六進制數字。
**See also** [setNamedColor](qcolor.html#setNamedColor)( ) 。
```
int QColor.red (self)
```
返回該顏色的紅色分量。
**See also** [setRed](qcolor.html#setRed)( )[redF](qcolor.html#redF)()和[getRgb](qcolor.html#getRgb)( ) 。
```
float QColor.redF (self)
```
返回該顏色的紅色分量。
**See also** [setRedF](qcolor.html#setRedF)( )[red](qcolor.html#red)()和[getRgbF](qcolor.html#getRgbF)( ) 。
```
int QColor.rgb (self)
```
返回的顏色的RGB值。 Alpha值是不透明的。
**See also** [setRgb](qcolor.html#setRgb)( )[getRgb](qcolor.html#getRgb)()和[rgba](qcolor.html#rgba)( ) 。
```
int QColor.rgba (self)
```
返回RGB值的顏色,包括其阿爾法。
對于無效的顏色,返回的顏色的Alpha值是不確定的。
**See also** [setRgba](qcolor.html#setRgba)()和[rgb](qcolor.html#rgb)( ) 。
```
int QColor.saturation (self)
```
返回該顏色的飽和度色彩分量。
顏色是隱式轉換到HSV 。
**See also** [hsvSaturation](qcolor.html#hsvSaturation)( )[saturationF](qcolor.html#saturationF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.saturationF (self)
```
返回該顏色的飽和度色彩分量。
顏色是隱式轉換到HSV 。
**See also** [hsvSaturationF](qcolor.html#hsvSaturationF)( )[saturation](qcolor.html#saturation)( )[getHsvF](qcolor.html#getHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor.setAllowX11ColorNames (bool?enabled)
```
允許[setNamedColor](qcolor.html#setNamedColor)( )來查找顏色的X11顏色數據庫,如果_enabled_。默認情況下,[setNamedColor](qcolor.html#setNamedColor)( )不_not_查找顏色的X11顏色數據庫。
**Note:**此功能僅可在X11平臺上。
**See also** [setNamedColor](qcolor.html#setNamedColor)()和[allowX11ColorNames](qcolor.html#allowX11ColorNames)( ) 。
```
QColor.setAlpha (self, int?alpha)
```
設置此顏色的alpha來_alpha_。整數阿爾法被指定在0-255范圍內。
**See also** [alpha](qcolor.html#alpha)( )[alphaF](qcolor.html#alphaF)()和[Alpha-Blended Drawing](qcolor.html#alpha-blended-drawing)。
```
QColor.setAlphaF (self, float?alpha)
```
設置此顏色的alpha來_alpha_。 QREAL阿爾法被指定在0.0-1.0范圍內。
**See also** [alphaF](qcolor.html#alphaF)( )[alpha](qcolor.html#alpha)()和[Alpha-Blended Drawing](qcolor.html#alpha-blended-drawing)。
```
QColor.setBlue (self, int?blue)
```
設置該顏色的藍色分量到_blue_。整數組件0-255范圍內指定。
**See also** [blue](qcolor.html#blue)( )[blueF](qcolor.html#blueF)()和[setRgb](qcolor.html#setRgb)( ) 。
```
QColor.setBlueF (self, float?blue)
```
設置該顏色的藍色分量到_blue_。浮子組件在0.0-1.0范圍指定。
**See also** [blueF](qcolor.html#blueF)( )[blue](qcolor.html#blue)()和[setRgbF](qcolor.html#setRgbF)( ) 。
```
QColor.setCmyk (self, int?c, int?m, int?y, int?k, int?alpha?=?255)
```
設置顏色為CMYK值,_c_(青色) ,_m_(品紅色),_y_(黃色),_k_(黑色),并_a_( α-信道,即,透明性) 。
所有的值必須在0-255范圍內。
**See also** [getCmyk](qcolor.html#getCmyk)( )[setCmykF](qcolor.html#setCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor.setCmykF (self, float?c, float?m, float?y, float?k, float?alpha?=?1)
```
這是一個重載函數。
設置顏色為CMYK值,_c_(青色) ,_m_(品紅色),_y_(黃色),_k_(黑色),并_a_( α-信道,即,透明性) 。
所有的值必須在0.0-1.0范圍內。
**See also** [getCmykF](qcolor.html#getCmykF)( )[setCmyk](qcolor.html#setCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor.setGreen (self, int?green)
```
設置這個顏色的綠色分量來_green_。整數組件0-255范圍內指定。
**See also** [green](qcolor.html#green)( )[greenF](qcolor.html#greenF)()和[setRgb](qcolor.html#setRgb)( ) 。
```
QColor.setGreenF (self, float?green)
```
設置這個顏色的綠色分量來_green_。浮子組件在0.0-1.0范圍指定。
**See also** [greenF](qcolor.html#greenF)( )[green](qcolor.html#green)()和[setRgbF](qcolor.html#setRgbF)( ) 。
```
QColor.setHsl (self, int?h, int?s, int?l, int?alpha?=?255)
```
設置一個HSL顏色值;_h_是色調_s_是飽和,_l_是輕和_a_是HSL顏色的alpha分量。
飽和度,值和alpha通道的值必須在0-255范圍內,色調值必須大于-1 。
此功能被引入Qt的4.6 。
**See also** [getHsl](qcolor.html#getHsl)()和[setHslF](qcolor.html#setHslF)( ) 。
```
QColor.setHslF (self, float?h, float?s, float?l, float?alpha?=?1)
```
設置一個HSL顏色明度;_h_是色調_s_是飽和,_l_是輕和_a_是HSL顏色的alpha分量。
所有的值必須在0.0-1.0范圍內。
此功能被引入Qt的4.6 。
**See also** [getHslF](qcolor.html#getHslF)()和[setHsl](qcolor.html#setHsl)( ) 。
```
QColor.setHsv (self, int?h, int?s, int?v, int?alpha?=?255)
```
設置HSV顏色值;_h_是色調_s_是飽和,_v_是值和_a_是HSV顏色的alpha分量。
飽和度,值和alpha通道的值必須在0-255范圍內,色調值必須大于-1 。
**See also** [hsv](index.htm#hsv)( )[getHsv](qcolor.html#getHsv)( )[setHsvF](qcolor.html#setHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor.setHsvF (self, float?h, float?s, float?v, float?alpha?=?1)
```
設置HSV顏色值;_h_是色調_s_是飽和,_v_是值和_a_是HSV顏色的alpha分量。
所有的值必須在0.0-1.0范圍內。
**See also** [getHsvF](qcolor.html#getHsvF)( )[setHsv](qcolor.html#setHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor.setNamedColor (self, QString?name)
```
設置該RGB值[QColor](qcolor.html)至_name_,這可能是在這些格式之一:
* #RGB (each of R, G, and B is a single hex digit)
* #RRGGBB
* #RRRGGGBBB
* #RRRRGGGGBBBB
* A name from the list of colors defined in the list of [SVG color keyword names](http://www.w3.org/TR/SVG/types.html#ColorKeywords) provided by the World Wide Web Consortium; for example, "steelblue" or "gainsboro". These color names work on all platforms. Note that these color names are _not_ the same as defined by the [Qt.GlobalColor](qt.html#GlobalColor-enum) enums, e.g. "green" and [Qt.green](qt.html#GlobalColor-enum) does not refer to the same color.
* `transparent` - representing the absence of a color.
* _X11 only_: If [allowX11ColorNames](qcolor.html#allowX11ColorNames)() returns true, any valid X11 color name. See the documentation for `XParseColor()` for information about valid X11 color names.
顏色是無效的,如果_name_不能被解析。
**See also** [QColor](qcolor.html#QColor)( )[name](qcolor.html#name)( )[isValid](qcolor.html#isValid)()和[allowX11ColorNames](qcolor.html#allowX11ColorNames)( ) 。
```
QColor.setRed (self, int?red)
```
設置這個顏色的紅色分量_red_。整數組件0-255范圍內指定。
**See also** [red](qcolor.html#red)( )[redF](qcolor.html#redF)()和[setRgb](qcolor.html#setRgb)( ) 。
```
QColor.setRedF (self, float?red)
```
設置這個顏色的紅色分量_red_。浮子組件在0.0-1.0范圍指定。
**See also** [redF](qcolor.html#redF)( )[red](qcolor.html#red)()和[setRgbF](qcolor.html#setRgbF)( ) 。
```
QColor.setRgb (self, int?r, int?g, int?b, int?alpha?=?255)
```
設置的RGB值,以_r_,_g_,_b_和α值,以_a_。
所有的值必須在0-255范圍內。
**See also** [rgb](qcolor.html#rgb)( )[getRgb](qcolor.html#getRgb)()和[setRgbF](qcolor.html#setRgbF)( ) 。
```
QColor.setRgb (self, int?rgb)
```
這是一個重載函數。
設置的RGB值,以_rgb_。 alpha值設置為不透明的。
```
QColor.setRgba (self, int?rgba)
```
設置的RGB值,以_rgba_,包括其阿爾法。
**See also** [rgba](qcolor.html#rgba)()和[rgb](qcolor.html#rgb)( ) 。
```
QColor.setRgbF (self, float?r, float?g, float?b, float?alpha?=?1)
```
設置此顏色的顏色通道_r_(紅色),_g_(綠色) ,_b_(藍色)和_a_(α,透明度) 。
所有的值必須在0.0-1.0范圍內。
**See also** [rgb](qcolor.html#rgb)( )[getRgbF](qcolor.html#getRgbF)()和[setRgb](qcolor.html#setRgb)( ) 。
```
Spec QColor.spec (self)
```
[
返回的顏色是如何規定的。
](qcolor.html#Spec-enum)
[**See also**](qcolor.html#Spec-enum) [Spec](qcolor.html#Spec-enum)和[convertTo](qcolor.html#convertTo)( ) 。
```
QColor QColor.toCmyk (self)
```
[](qcolor.html)
[創建并返回一個CMYK](qcolor.html)[QColor](qcolor.html)在此基礎上的色彩。
**See also** [fromCmyk](qcolor.html#fromCmyk)( )[convertTo](qcolor.html#convertTo)( )[isValid](qcolor.html#isValid)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
QColor QColor.toHsl (self)
```
[](qcolor.html)
[創建并返回一個HSL](qcolor.html)[QColor](qcolor.html)在此基礎上的色彩。
**See also** [fromHsl](qcolor.html#fromHsl)( )[convertTo](qcolor.html#convertTo)()和[isValid](qcolor.html#isValid)( ) 。
```
QColor QColor.toHsv (self)
```
[](qcolor.html)
[創建并返回一個單純皰疹病毒](qcolor.html)[QColor](qcolor.html)在此基礎上的色彩。
**See also** [fromHsv](qcolor.html#fromHsv)( )[convertTo](qcolor.html#convertTo)( )[isValid](qcolor.html#isValid)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
QColor QColor.toRgb (self)
```
[](qcolor.html)
[創建并返回一個RGB](qcolor.html)[QColor](qcolor.html)在此基礎上的色彩。
**See also** [fromRgb](qcolor.html#fromRgb)( )[convertTo](qcolor.html#convertTo)()和[isValid](qcolor.html#isValid)( ) 。
```
int QColor.value (self)
```
返回此顏色值的顏色分量。
**See also** [valueF](qcolor.html#valueF)( )[getHsv](qcolor.html#getHsv)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
float QColor.valueF (self)
```
返回此顏色值的顏色分量。
**See also** [value](qcolor.html#value)( )[getHsvF](qcolor.html#getHsvF)()和[The HSV Color Model](qcolor.html#the-hsv-color-model)。
```
int QColor.yellow (self)
```
返回該顏色的黃色成分。
**See also** [yellowF](qcolor.html#yellowF)( )[getCmyk](qcolor.html#getCmyk)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
float QColor.yellowF (self)
```
返回該顏色的黃色成分。
**See also** [yellow](qcolor.html#yellow)( )[getCmykF](qcolor.html#getCmykF)()和[The CMYK Color Model](qcolor.html#the-cmyk-color-model)。
```
bool QColor.__eq__ (self, QColor?c)
```
```
bool QColor.__ne__ (self, QColor?c)
```
- PyQt4 中文文檔
- PyQt Class Reference
- QAbstractAnimation Class Reference
- QAbstractButton Class Reference
- QAbstractEventDispatcher Class Reference
- QAbstractExtensionFactory Class Reference
- QAbstractExtensionManager Class Reference
- QAbstractFileEngine Class Reference
- QAbstractFileEngineHandler Class Reference
- QAbstractFileEngineIterator Class Reference
- QAbstractFormBuilder Class Reference
- QAbstractGraphicsShapeItem Class Reference
- QAbstractItemDelegate Class Reference
- QAbstractItemModel Class Reference
- QAbstractItemView Class Reference
- QAbstractListModel Class Reference
- QAbstractMessageHandler Class Reference
- QAbstractNetworkCache Class Reference
- QAbstractPrintDialog Class Reference
- QAbstractProxyModel Class Reference
- QAbstractScrollArea Class Reference
- QAbstractSlider Class Reference
- QAbstractSocket Class Reference
- QAbstractSpinBox Class Reference
- QAbstractState Class Reference
- QAbstractTableModel Class Reference
- QAbstractTextDocumentLayout Class Reference
- QAbstractTransition Class Reference
- QAbstractUriResolver Class Reference
- QAbstractVideoBuffer Class Reference
- QAbstractVideoSurface Class Reference
- QAbstractXmlNodeModel Class Reference
- QAbstractXmlReceiver Class Reference
- QAction Class Reference
- QActionEvent Class Reference
- QActionGroup Class Reference
- QAnimationGroup Class Reference
- QApplication Class Reference
- QAssistantClient Class Reference
- QAudio Class Reference
- QAudioDeviceInfo Class Reference
- QAudioFormat Class Reference
- QAudioInput Class Reference
- QAudioOutput Class Reference
- QAuthenticator Class Reference
- QBasicTimer Class Reference
- QBitArray Class Reference
- QBitmap Class Reference
- QBoxLayout Class Reference
- QBrush Class Reference
- QBuffer Class Reference
- QButtonGroup Class Reference
- QByteArray Class Reference
- QByteArrayMatcher Class Reference
- QCalendarWidget Class Reference
- QChar Class Reference
- QCheckBox Class Reference
- QChildEvent Class Reference
- QClipboard Class Reference
- QCloseEvent Class Reference
- QColor Class Reference
- QColorDialog Class Reference
- QColumnView Class Reference
- QComboBox Class Reference
- QCommandLinkButton Class Reference
- QCommonStyle Class Reference
- QCompleter Class Reference
- QConicalGradient Class Reference
- QContextMenuEvent Class Reference
- QCoreApplication Class Reference
- QCryptographicHash Class Reference
- QCursor Class Reference
- QDataStream Class Reference
- QDataWidgetMapper Class Reference
- QDate Class Reference
- QDateEdit Class Reference
- QDateTime Class Reference
- QDateTimeEdit Class Reference
- QDBus Class Reference
- QDBusAbstractAdaptor Class Reference
- QDBusAbstractInterface Class Reference
- QDBusArgument Class Reference
- QDBusConnection Class Reference
- QDBusConnectionInterface Class Reference
- QDBusError Class Reference
- QDBusInterface Class Reference
- QDBusMessage Class Reference
- QDBusObjectPath Class Reference
- QDBusPendingCall Class Reference
- QDBusPendingCallWatcher Class Reference
- QDBusPendingReply Class Reference
- QDBusReply Class Reference
- QDBusServiceWatcher Class Reference
- QDBusSignature Class Reference
- QDBusUnixFileDescriptor Class Reference
- QDBusVariant Class Reference
- QDeclarativeComponent Class Reference
- QDeclarativeContext Class Reference
- QDeclarativeEngine Class Reference
- QDeclarativeError Class Reference
- QDeclarativeExpression Class Reference
- QDeclarativeExtensionPlugin Class Reference
- QDeclarativeImageProvider Class Reference
- QDeclarativeItem Class Reference
- QDeclarativeListReference Class Reference
- QDeclarativeNetworkAccessManagerFactory Class Reference
- QDeclarativeParserStatus Class Reference
- QDeclarativeProperty Class Reference
- QDeclarativePropertyMap Class Reference
- QDeclarativePropertyValueSource Class Reference
- QDeclarativeScriptString Class Reference
- QDeclarativeView Class Reference
- QDesignerActionEditorInterface Class Reference
- QDesignerContainerExtension Class Reference
- QDesignerCustomWidgetCollectionInterface Class Reference
- QDesignerCustomWidgetInterface Class Reference
- QDesignerFormEditorInterface Class Reference
- QDesignerFormWindowCursorInterface Class Reference
- QDesignerFormWindowInterface Class Reference
- QDesignerFormWindowManagerInterface Class Reference
- QDesignerMemberSheetExtension Class Reference
- QDesignerObjectInspectorInterface Class Reference
- QDesignerPropertyEditorInterface Class Reference
- QDesignerPropertySheetExtension Class Reference
- QDesignerTaskMenuExtension Class Reference
- QDesignerWidgetBoxInterface Class Reference
- QDesktopServices Class Reference
- QDesktopWidget Class Reference
- QDial Class Reference
- QDialog Class Reference
- QDialogButtonBox Class Reference
- QDir Class Reference
- QDirIterator Class Reference
- QDirModel Class Reference
- QDockWidget Class Reference
- QDomAttr Class Reference
- QDomCDATASection Class Reference
- QDomCharacterData Class Reference
- QDomComment Class Reference
- QDomDocument Class Reference
- QDomDocumentFragment Class Reference
- QDomDocumentType Class Reference
- QDomElement Class Reference
- QDomEntity Class Reference
- QDomEntityReference Class Reference
- QDomImplementation Class Reference
- QDomNamedNodeMap Class Reference
- QDomNode Class Reference
- QDomNodeList Class Reference
- QDomNotation Class Reference
- QDomProcessingInstruction Class Reference
- QDomText Class Reference
- QDoubleSpinBox Class Reference
- QDoubleValidator Class Reference
- QDrag Class Reference
- QDragEnterEvent Class Reference
- QDragLeaveEvent Class Reference
- QDragMoveEvent Class Reference
- QDropEvent Class Reference
- QDynamicPropertyChangeEvent Class Reference
- QEasingCurve Class Reference
- QElapsedTimer Class Reference
- QErrorMessage Class Reference
- QEvent Class Reference
- QEventLoop Class Reference
- QEventTransition Class Reference
- QExtensionFactory Class Reference
- QExtensionManager Class Reference
- QFile Class Reference
- QFileDialog Class Reference
- QFileIconProvider Class Reference
- QFileInfo Class Reference
- QFileOpenEvent Class Reference
- QFileSystemModel Class Reference
- QFileSystemWatcher Class Reference
- QFinalState Class Reference
- QFocusEvent Class Reference
- QFocusFrame Class Reference
- QFont Class Reference
- QFontComboBox Class Reference
- QFontDatabase Class Reference
- QFontDialog Class Reference
- QFontInfo Class Reference
- QFontMetrics Class Reference
- QFontMetricsF Class Reference
- QFormBuilder Class Reference
- QFormLayout Class Reference
- QFrame Class Reference
- QFSFileEngine Class Reference
- QFtp Class Reference
- QGenericArgument Class Reference
- QGenericReturnArgument Class Reference
- QGesture Class Reference
- QGestureEvent Class Reference
- QGestureRecognizer Class Reference
- QGL Class Reference
- QGLBuffer Class Reference
- QGLColormap Class Reference
- QGLContext Class Reference
- QGLFormat Class Reference
- QGLFramebufferObject Class Reference
- QGLFramebufferObjectFormat Class Reference
- QGLPixelBuffer Class Reference
- QGLShader Class Reference
- QGLShaderProgram Class Reference
- QGLWidget Class Reference
- QGlyphRun Class Reference
- QGradient Class Reference
- QGraphicsAnchor Class Reference
- QGraphicsAnchorLayout Class Reference
- QGraphicsBlurEffect Class Reference
- QGraphicsColorizeEffect Class Reference
- QGraphicsDropShadowEffect Class Reference
- QGraphicsEffect Class Reference
- QGraphicsEllipseItem Class Reference
- QGraphicsGridLayout Class Reference
- QGraphicsItem Class Reference
- QGraphicsItemAnimation Class Reference
- QGraphicsItemGroup Class Reference
- QGraphicsLayout Class Reference
- QGraphicsLayoutItem Class Reference
- QGraphicsLinearLayout Class Reference
- QGraphicsLineItem Class Reference
- QGraphicsObject Class Reference
- QGraphicsOpacityEffect Class Reference
- QGraphicsPathItem Class Reference
- QGraphicsPixmapItem Class Reference
- QGraphicsPolygonItem Class Reference
- QGraphicsProxyWidget Class Reference
- QGraphicsRectItem Class Reference
- QGraphicsRotation Class Reference
- QGraphicsScale Class Reference
- QGraphicsScene Class Reference
- QGraphicsSceneContextMenuEvent Class Reference
- QGraphicsSceneDragDropEvent Class Reference
- QGraphicsSceneEvent Class Reference
- QGraphicsSceneHelpEvent Class Reference
- QGraphicsSceneHoverEvent Class Reference
- QGraphicsSceneMouseEvent Class Reference
- QGraphicsSceneMoveEvent Class Reference
- QGraphicsSceneResizeEvent Class Reference
- QGraphicsSceneWheelEvent Class Reference
- QGraphicsSimpleTextItem Class Reference
- QGraphicsSvgItem Class Reference
- QGraphicsTextItem Class Reference
- QGraphicsTransform Class Reference
- QGraphicsView Class Reference
- QGraphicsWebView Class Reference
- QGraphicsWidget Class Reference
- QGridLayout Class Reference
- QGroupBox Class Reference
- QHBoxLayout Class Reference
- QHeaderView Class Reference
- QHelpContentItem Class Reference
- QHelpContentModel Class Reference
- QHelpContentWidget Class Reference
- QHelpEngine Class Reference
- QHelpEngineCore Class Reference
- QHelpEvent Class Reference
- QHelpIndexModel Class Reference
- QHelpIndexWidget Class Reference
- QHelpSearchEngine Class Reference
- QHelpSearchQuery Class Reference
- QHelpSearchQueryWidget Class Reference
- QHelpSearchResultWidget Class Reference
- QHideEvent Class Reference
- QHistoryState Class Reference
- QHostAddress Class Reference
- QHostInfo Class Reference
- QHoverEvent Class Reference
- QHttp Class Reference
- QHttpHeader Class Reference
- QHttpMultiPart Class Reference
- QHttpPart Class Reference
- QHttpRequestHeader Class Reference
- QHttpResponseHeader Class Reference
- QIcon Class Reference
- QIconDragEvent Class Reference
- QIconEngine Class Reference
- QIconEngineV2 Class Reference
- QIdentityProxyModel Class Reference
- QImage Class Reference
- QImageIOHandler Class Reference
- QImageReader Class Reference
- QImageWriter Class Reference
- QInputContext Class Reference
- QInputContextFactory Class Reference
- QInputDialog Class Reference
- QInputEvent Class Reference
- QInputMethodEvent Class Reference
- QIntValidator Class Reference
- QIODevice Class Reference
- QItemDelegate Class Reference
- QItemEditorCreatorBase Class Reference
- QItemEditorFactory Class Reference
- QItemSelection Class Reference
- QItemSelectionModel Class Reference
- QItemSelectionRange Class Reference
- QKeyEvent Class Reference
- QKeyEventTransition Class Reference
- QKeySequence Class Reference
- QLabel Class Reference
- QLatin1Char Class Reference
- QLatin1String Class Reference
- QLayout Class Reference
- QLayoutItem Class Reference
- QLCDNumber Class Reference
- QLibrary Class Reference
- QLibraryInfo Class Reference
- QLine Class Reference
- QLinearGradient Class Reference
- QLineEdit Class Reference
- QLineF Class Reference
- QListView Class Reference
- QListWidget Class Reference
- QListWidgetItem Class Reference
- QLocale Class Reference
- QLocalServer Class Reference
- QLocalSocket Class Reference
- QMainWindow Class Reference
- QMargins Class Reference
- QMatrix Class Reference
- QMatrix2x2 Class Reference
- QMatrix2x3 Class Reference
- QMatrix2x4 Class Reference
- QMatrix3x2 Class Reference
- QMatrix3x3 Class Reference
- QMatrix3x4 Class Reference
- QMatrix4x2 Class Reference
- QMatrix4x3 Class Reference
- QMatrix4x4 Class Reference
- QMdiArea Class Reference
- QMdiSubWindow Class Reference
- QMenu Class Reference
- QMenuBar Class Reference
- QMessageBox Class Reference
- QMetaClassInfo Class Reference
- QMetaEnum Class Reference
- QMetaMethod Class Reference
- QMetaObject Class Reference
- QMetaProperty Class Reference
- QMetaType Class Reference
- QMimeData Class Reference
- QMimeSource Class Reference
- QModelIndex Class Reference
- QMouseEvent Class Reference
- QMouseEventTransition Class Reference
- QMoveEvent Class Reference
- QMovie Class Reference
- QMutex Class Reference
- QMutexLocker Class Reference
- QNetworkAccessManager Class Reference
- QNetworkAddressEntry Class Reference
- QNetworkCacheMetaData Class Reference
- QNetworkConfiguration Class Reference
- QNetworkConfigurationManager Class Reference
- QNetworkCookie Class Reference
- QNetworkCookieJar Class Reference
- QNetworkDiskCache Class Reference
- QNetworkInterface Class Reference
- QNetworkProxy Class Reference
- QNetworkProxyFactory Class Reference
- QNetworkProxyQuery Class Reference
- QNetworkReply Class Reference
- QNetworkRequest Class Reference
- QNetworkSession Class Reference
- QObject Class Reference
- QObjectCleanupHandler Class Reference
- QPageSetupDialog Class Reference
- QPaintDevice Class Reference
- QPaintEngine Class Reference
- QPaintEngineState Class Reference
- QPainter Class Reference
- QPainterPath Class Reference
- QPainterPathStroker Class Reference
- QPaintEvent Class Reference
- QPalette Class Reference
- QPanGesture Class Reference
- QParallelAnimationGroup Class Reference
- QPauseAnimation Class Reference
- QPen Class Reference
- QPersistentModelIndex Class Reference
- QPicture Class Reference
- QPictureIO Class Reference
- QPinchGesture Class Reference
- QPixmap Class Reference
- QPixmapCache Class Reference
- QPlainTextDocumentLayout Class Reference
- QPlainTextEdit Class Reference
- QPluginLoader Class Reference
- QPoint Class Reference
- QPointF Class Reference
- QPolygon Class Reference
- QPolygonF Class Reference
- QPrintDialog Class Reference
- QPrintEngine Class Reference
- QPrinter Class Reference
- QPrinterInfo Class Reference
- QPrintPreviewDialog Class Reference
- QPrintPreviewWidget Class Reference
- QProcess Class Reference
- QProcessEnvironment Class Reference
- QProgressBar Class Reference
- QProgressDialog Class Reference
- QPropertyAnimation Class Reference
- QProxyModel Class Reference
- QPushButton Class Reference
- QPyDeclarativePropertyValueSource Class Reference
- QPyDesignerContainerExtension Class Reference
- QPyDesignerCustomWidgetCollectionPlugin Class Reference
- QPyDesignerCustomWidgetPlugin Class Reference
- QPyDesignerMemberSheetExtension Class Reference
- QPyDesignerPropertySheetExtension Class Reference
- QPyDesignerTaskMenuExtension Class Reference
- QPyNullVariant Class Reference
- QPyTextObject Class Reference
- QQuaternion Class Reference
- QRadialGradient Class Reference
- QRadioButton Class Reference
- QRawFont Class Reference
- QReadLocker Class Reference
- QReadWriteLock Class Reference
- QRect Class Reference
- QRectF Class Reference
- QRegExp Class Reference
- QRegExpValidator Class Reference
- QRegion Class Reference
- QResizeEvent Class Reference
- QResource Class Reference
- QRubberBand Class Reference
- QRunnable Class Reference
- QScriptClass Class Reference
- QScriptClassPropertyIterator Class Reference
- QScriptContext Class Reference
- QScriptContextInfo Class Reference
- QScriptEngine Class Reference
- QScriptEngineAgent Class Reference
- QScriptEngineDebugger Class Reference
- QScriptString Class Reference
- QScriptSyntaxCheckResult Class Reference
- QScriptValue Class Reference
- QScriptValueIterator Class Reference
- QScrollArea Class Reference
- QScrollBar Class Reference
- QSemaphore Class Reference
- QSequentialAnimationGroup Class Reference
- QSessionManager Class Reference
- QSettings Class Reference
- QSharedMemory Class Reference
- QShortcut Class Reference
- QShortcutEvent Class Reference
- QShowEvent Class Reference
- QSignalMapper Class Reference
- QSignalTransition Class Reference
- QSimpleXmlNodeModel Class Reference
- QSize Class Reference
- QSizeF Class Reference
- QSizeGrip Class Reference
- QSizePolicy Class Reference
- QSlider Class Reference
- QSocketNotifier Class Reference
- QSortFilterProxyModel Class Reference
- QSound Class Reference
- QSourceLocation Class Reference
- QSpacerItem Class Reference
- QSpinBox Class Reference
- QSplashScreen Class Reference
- QSplitter Class Reference
- QSplitterHandle Class Reference
- QSql Class Reference
- QSqlDatabase Class Reference
- QSqlDriver Class Reference
- QSqlDriverCreatorBase Class Reference
- QSqlError Class Reference
- QSqlField Class Reference
- QSqlIndex Class Reference
- QSqlQuery Class Reference
- QSqlQueryModel Class Reference
- QSqlRecord Class Reference
- QSqlRelation Class Reference
- QSqlRelationalDelegate Class Reference
- QSqlRelationalTableModel Class Reference
- QSqlResult Class Reference
- QSqlTableModel Class Reference
- Qt4.7文檔翻譯:Qt樣式單參考,Qt Style Sheets Reference
- QSsl Class Reference
- QSslCertificate Class Reference
- QSslCipher Class Reference
- QSslConfiguration Class Reference
- QSslError Class Reference
- QSslKey Class Reference
- QSslSocket Class Reference
- QStackedLayout Class Reference
- QStackedWidget Class Reference
- QStandardItem Class Reference
- QStandardItemModel Class Reference
- QState Class Reference
- QStateMachine Class Reference
- QStaticText Class Reference
- QStatusBar Class Reference
- QStatusTipEvent Class Reference
- QString Class Reference
- QStringList Class Reference
- QStringListModel Class Reference
- QStringMatcher Class Reference
- QStringRef Class Reference
- QStyle Class Reference
- QStyledItemDelegate Class Reference
- QStyleFactory Class Reference
- QStyleHintReturn Class Reference
- QStyleHintReturnMask Class Reference
- QStyleHintReturnVariant Class Reference
- QStyleOption Class Reference
- QStyleOptionButton Class Reference
- QStyleOptionComboBox Class Reference
- QStyleOptionComplex Class Reference
- QStyleOptionDockWidget Class Reference
- QStyleOptionDockWidgetV2 Class Reference
- QStyleOptionFocusRect Class Reference
- QStyleOptionFrame Class Reference
- QStyleOptionFrameV2 Class Reference
- QStyleOptionFrameV3 Class Reference
- QStyleOptionGraphicsItem Class Reference
- QStyleOptionGroupBox Class Reference
- QStyleOptionHeader Class Reference
- QStyleOptionMenuItem Class Reference
- QStyleOptionProgressBar Class Reference
- QStyleOptionProgressBarV2 Class Reference
- QStyleOptionRubberBand Class Reference
- QStyleOptionSizeGrip Class Reference
- QStyleOptionSlider Class Reference
- QStyleOptionSpinBox Class Reference
- QStyleOptionTab Class Reference
- QStyleOptionTabBarBase Class Reference
- QStyleOptionTabBarBaseV2 Class Reference
- QStyleOptionTabV2 Class Reference
- QStyleOptionTabV3 Class Reference
- QStyleOptionTabWidgetFrame Class Reference
- QStyleOptionTabWidgetFrameV2 Class Reference
- QStyleOptionTitleBar Class Reference
- QStyleOptionToolBar Class Reference
- QStyleOptionToolBox Class Reference
- QStyleOptionToolBoxV2 Class Reference
- QStyleOptionToolButton Class Reference
- QStyleOptionViewItem Class Reference
- QStyleOptionViewItemV2 Class Reference
- QStyleOptionViewItemV3 Class Reference
- QStyleOptionViewItemV4 Class Reference
- QStylePainter Class Reference
- QSvgGenerator Class Reference
- QSvgRenderer Class Reference
- QSvgWidget Class Reference
- QSwipeGesture Class Reference
- QSyntaxHighlighter Class Reference
- QSysInfo Class Reference
- QSystemLocale Class Reference
- QSystemSemaphore Class Reference
- QSystemTrayIcon Class Reference
- Qt Class Reference
- QTabBar Class Reference
- QTabletEvent Class Reference
- QTableView Class Reference
- QTableWidget Class Reference
- QTableWidgetItem Class Reference
- QTableWidgetSelectionRange Class Reference
- QTabWidget Class Reference
- QTapAndHoldGesture Class Reference
- QTapGesture Class Reference
- QTcpServer Class Reference
- QTcpSocket Class Reference
- QTemporaryFile Class Reference
- QTest Class Reference
- QTextBlock Class Reference
- QTextBlockFormat Class Reference
- QTextBlockGroup Class Reference
- QTextBlockUserData Class Reference
- QTextBoundaryFinder Class Reference
- QTextBrowser Class Reference
- QTextCharFormat Class Reference
- QTextCodec Class Reference
- QTextCursor Class Reference
- QTextDecoder Class Reference
- QTextDocument Class Reference
- QTextDocumentFragment Class Reference
- QTextDocumentWriter Class Reference
- QTextEdit Class Reference
- QTextEncoder Class Reference
- QTextFormat Class Reference
- QTextFragment Class Reference
- QTextFrame Class Reference
- QTextFrameFormat Class Reference
- QTextImageFormat Class Reference
- QTextInlineObject Class Reference
- QTextItem Class Reference
- QTextLayout Class Reference
- QTextLength Class Reference
- QTextLine Class Reference
- QTextList Class Reference
- QTextListFormat Class Reference
- QTextObject Class Reference
- QTextObjectInterface Class Reference
- QTextOption Class Reference
- QTextStream Class Reference
- QTextTable Class Reference
- QTextTableCell Class Reference
- QTextTableCellFormat Class Reference
- QTextTableFormat Class Reference
- QThread Class Reference
- QThreadPool Class Reference
- QTime Class Reference
- QTimeEdit Class Reference
- QTimeLine Class Reference
- QTimer Class Reference
- QTimerEvent Class Reference
- QToolBar Class Reference
- QToolBox Class Reference
- QToolButton Class Reference
- QToolTip Class Reference
- QTouchEvent Class Reference
- Reference
- QTransform Class Reference
- QTranslator Class Reference
- QTreeView Class Reference
- QTreeWidget Class Reference
- QTreeWidgetItem Class Reference
- QTreeWidgetItemIterator Class Reference
- QUdpSocket Class Reference
- QUndoCommand Class Reference
- QUndoGroup Class Reference
- QUndoStack Class Reference
- QUndoView Class Reference
- QUrl Class Reference
- QUrlInfo Class Reference
- QUuid Class Reference
- QValidator Class Reference
- QVariant Class Reference
- QVariantAnimation Class Reference
- QVBoxLayout Class Reference
- QVector2D Class Reference
- QVector3D Class Reference
- QVector4D Class Reference
- QVideoFrame Class Reference
- QVideoSurfaceFormat Class Reference
- QWaitCondition Class Reference
- QWebDatabase Class Reference
- QWebElement Class Reference
- QWebElementCollection Class Reference
- QWebFrame Class Reference
- QWebHistory Class Reference
- QWebHistoryInterface Class Reference
- QWebHistoryItem Class Reference
- QWebHitTestResult Class Reference
- QWebInspector Class Reference
- QWebPage Class Reference
- QWebPluginFactory Class Reference
- QWebSecurityOrigin Class Reference
- QWebSettings Class Reference
- QWebView Class Reference
- QWhatsThis Class Reference
- QWhatsThisClickedEvent Class Reference
- QWheelEvent Class Reference
- QWidget Class Reference
- QWidgetAction Class Reference
- QWidgetItem Class Reference
- QWindowStateChangeEvent Class Reference
- QWizard Class Reference
- QWizardPage Class Reference
- QWorkspace Class Reference
- QWriteLocker Class Reference
- QX11EmbedContainer Class Reference
- QX11EmbedWidget Class Reference
- QX11Info Class Reference
- QXmlAttributes Class Reference
- QXmlContentHandler Class Reference
- QXmlDeclHandler Class Reference
- QXmlDefaultHandler Class Reference
- QXmlDTDHandler Class Reference
- QXmlEntityResolver Class Reference
- QXmlErrorHandler Class Reference
- QXmlFormatter Class Reference
- QXmlInputSource Class Reference
- QXmlItem Class Reference
- QXmlLexicalHandler Class Reference
- QXmlLocator Class Reference
- QXmlName Class Reference
- QXmlNamePool Class Reference
- QXmlNamespaceSupport Class Reference
- QXmlNodeModelIndex Class Reference
- QXmlParseException Class Reference
- QXmlQuery Class Reference
- QXmlReader Class Reference
- QXmlResultItems Class Reference
- QXmlSchema Class Reference
- QXmlSchemaValidator Class Reference
- QXmlSerializer Class Reference
- QXmlSimpleReader Class Reference
- QXmlStreamAttribute Class Reference
- QXmlStreamAttributes Class Reference
- QXmlStreamEntityDeclaration Class Reference
- QXmlStreamEntityResolver Class Reference
- QXmlStreamNamespaceDeclaration Class Reference
- QXmlStreamNotationDeclaration Class Reference
- QXmlStreamReader Class Reference
- QXmlStreamWriter Class Reference