pyqt4文档阅读(9):QColor

本系列文章长期更新修改.


QColor,是Qt里代表颜色的类,是许多更抽象数据结构和作图的基础.


属性:


Types

  • enum Spec { Invalid, Rgb, Hsv, Cmyk }

Methods

  • __init__ (self, Qt.GlobalColor color)
  • __init__ (self, unsigned long rgb)
  • __init__ (self, QVariant variant)
  • __init__ (self)
  • __init__ (self, int r, int g, int b, int a = 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 f = 200)
  • QColor darker (self, int f = 200)
  • (int c, int m, int y, int k, int a) getCmyk (self)
  • (float c, float m, float y, float k, float a) getCmykF (self)
  • (int h, int s, int v, int a) getHsv (self)
  • (float h, float s, float v, float a) getHsvF (self)
  • (int r, int g, int b, int a) getRgb (self)
  • (float r, float g, float b, float a) getRgbF (self)
  • int green (self)
  • float greenF (self)
  • int hue (self)
  • float hueF (self)
  • bool isValid (self)
  • QColor light (self, int f = 150)
  • QColor lighter (self, int f = 150)
  • int magenta (self)
  • float magentaF (self)
  • QString name (self)
  • int red (self)
  • float redF (self)
  • unsigned long rgb (self)
  • unsigned long rgba (self)
  • int saturation (self)
  • float saturationF (self)
  • s
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值