QColor Class Reference
[QtGui module]
Types
- enum Spec { Invalid, Rgb, Hsv, Cmyk, Hsl }
Methods
- __init__ (self, Qt.GlobalColor)
- __init__ (self, int)
- __init__ (self, QVariant variant)
- __init__ (self)
- __init__ (self, int, int, int, int alpha = 255)
- __init__ (self, QString)
- __init__ (self, QColor)
- int alpha (self)
- float alphaF (self)
- int black (self)
- float blackF (self)
- int blue (self)
- float blueF (self)
- QColor convertTo (self, Spec)
- int cyan (self)
- float cyanF (self)
- QColor dark (self, int factor = 200)
- QColor darker (self, int factor = 200)
- (int, int, int, int, int alpha) getCmyk (self)
- (float, float, float, float, float alpha) getCmykF (self)
- (int, int, int, int alpha) getHsl (self)
- (float, float, float, float alpha) getHslF (self)
- (int, int, int, int alpha) getHsv (self)
- (float, float, float, float alpha) getHsvF (self)
- (int, int, int, int alpha) getRgb (self)
- (float, float, float, 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)
- setAlphaF (self, float)
- setBlue (self, int)
- setBlueF (self, float)
- setCmyk (self, int, int, int, int, int alpha = 255)
- setCmykF (self, float, float, float, float, float alpha = 1)
- setGreen (self, int)
- setGreenF (self, float)
- setHsl (self, int, int, int, int alpha = 255)
- setHslF (self, float, float, float, float alpha = 1)
- setHsv (self, int, int, int, int alpha = 255)
- setHsvF (self, float, float, float, float alpha = 1)
- setNamedColor (self, QString)
- setRed (self, int)
- setRedF (self, float)
- setRgb (self, int, int, int, int alpha = 255)
- setRgb (self, int)
- setRgba (self, int)
- setRgbF (self, float, float, float, 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, int, int, int, int alpha = 255)
- QColor fromCmykF (float, float, float, float, float alpha = 1)
- QColor fromHsl (int, int, int, int alpha = 255)
- QColor fromHslF (float, float, float, float alpha = 1)
- QColor fromHsv (int, int, int, int alpha = 255)
- QColor fromHsvF (float, float, float, float alpha = 1)
- QColor fromRgb (int)
- QColor fromRgb (int, int, int, int alpha = 255)
- QColor fromRgba (int)
- QColor fromRgbF (float, float, float, float alpha = 1)
- bool isValidColor (QString name)
- setAllowX11ColorNames (bool)
Special Methods
Detailed Description
This class can be pickled.
A
Qt.GlobalColor
may be used whenever a
QColor
is expected.
Type Documentation
QColor.Spec
Method Documentation
QColor.__init__ (self, int)
QColor.__init__ (self, QVariant variant)
QColor.__init__ (self)
QColor.__init__ (self, int, int, int, int alpha = 255)
QColor.__init__ (self, QString)
QColor.__init__ (self, QColor)
bool QColor.allowX11ColorNames ()
int QColor.alpha (self)
float QColor.alphaF (self)
int QColor.black (self)
float QColor.blackF (self)
int QColor.blue (self)
float QColor.blueF (self)
QStringList QColor.colorNames ()
QColor QColor.convertTo (self, Spec)
int QColor.cyan (self)
float QColor.cyanF (self)
QColor QColor.dark (self, int factor = 200)
QColor QColor.darker (self, int factor = 200)
QColor QColor.fromCmyk (int, int, int, int, int alpha = 255)
QColor QColor.fromCmykF (float, float, float, float, float alpha = 1)
QColor QColor.fromHsl (int, int, int, int alpha = 255)
QColor QColor.fromHslF (float, float, float, float alpha = 1)
QColor QColor.fromHsv (int, int, int, int alpha = 255)
QColor QColor.fromHsvF (float, float, float, float alpha = 1)
QColor QColor.fromRgb (int)
QColor QColor.fromRgb (int, int, int, int alpha = 255)
QColor QColor.fromRgba (int)
QColor QColor.fromRgbF (float, float, float, float alpha = 1)
(int, int, int, int, int alpha) QColor.getCmyk (self)
(float, float, float, float, float alpha) QColor.getCmykF (self)
(int, int, int, int alpha) QColor.getHsl (self)
(float, float, float, float alpha) QColor.getHslF (self)
(int, int, int, int alpha) QColor.getHsv (self)
(float, float, float, float alpha) QColor.getHsvF (self)
(int, int, int, int alpha) QColor.getRgb (self)
(float, float, float, float alpha) QColor.getRgbF (self)
int QColor.green (self)
float QColor.greenF (self)
int QColor.hslHue (self)
float QColor.hslHueF (self)
int QColor.hslSaturation (self)
float QColor.hslSaturationF (self)
int QColor.hsvHue (self)
float QColor.hsvHueF (self)
int QColor.hsvSaturation (self)
float QColor.hsvSaturationF (self)
int QColor.hue (self)
float QColor.hueF (self)
bool QColor.isValid (self)
bool QColor.isValidColor (QString name)
QColor QColor.light (self, int factor = 150)
QColor QColor.lighter (self, int factor = 150)
int QColor.lightness (self)
float QColor.lightnessF (self)
int QColor.magenta (self)
float QColor.magentaF (self)
QString QColor.name (self)
int QColor.red (self)
float QColor.redF (self)
int QColor.rgb (self)
int QColor.rgba (self)
int QColor.saturation (self)
float QColor.saturationF (self)
QColor.setAllowX11ColorNames (bool)
QColor.setAlpha (self, int)
QColor.setAlphaF (self, float)
QColor.setBlue (self, int)
QColor.setBlueF (self, float)
QColor.setCmyk (self, int, int, int, int, int alpha = 255)
QColor.setCmykF (self, float, float, float, float, float alpha = 1)
QColor.setGreen (self, int)
QColor.setGreenF (self, float)
QColor.setHsl (self, int, int, int, int alpha = 255)
QColor.setHslF (self, float, float, float, float alpha = 1)
QColor.setHsv (self, int, int, int, int alpha = 255)
QColor.setHsvF (self, float, float, float, float alpha = 1)
QColor.setNamedColor (self, QString)
QColor.setRed (self, int)
QColor.setRedF (self, float)
QColor.setRgb (self, int, int, int, int alpha = 255)
QColor.setRgb (self, int)
QColor.setRgba (self, int)
QColor.setRgbF (self, float, float, float, float alpha = 1)
Spec QColor.spec (self)
QColor QColor.toCmyk (self)
QColor QColor.toHsl (self)
QColor QColor.toHsv (self)
QColor QColor.toRgb (self)
int QColor.value (self)
float QColor.valueF (self)
int QColor.yellow (self)
float QColor.yellowF (self)
bool QColor.__eq__ (self, QColor)
bool QColor.__ne__ (self, QColor)