Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QColor »

Informations générales

Héritage

builtins.object
    Object
        QColor

Définition

class QColor(Object):

Description [extrait de QColor.__doc__]

QColor(self)
QColor(self, arg__1: typing.Any)
QColor(self, color: PySide2.QtCore.Qt.GlobalColor)
QColor(self, color: PySide2.QtGui.QColor)
QColor(self, name: str)
QColor(self, r: int, g: int, b: int, a: int = 255)
QColor(self, rgb: int)
QColor(self, spec: PySide2.QtGui.QColor.Spec, a1: int, a2: int, a3: int, a4: int, a5: int = 0)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
CmykPySide2.QtGui.QColor.Spec.Cmyk
ExtendedRgbPySide2.QtGui.QColor.Spec.ExtendedRgb
HexArgbPySide2.QtGui.QColor.NameFormat.HexArgb
HexRgbPySide2.QtGui.QColor.NameFormat.HexRgb
HslPySide2.QtGui.QColor.Spec.Hsl
HsvPySide2.QtGui.QColor.Spec.Hsv
InvalidPySide2.QtGui.QColor.Spec.Invalid
RgbPySide2.QtGui.QColor.Spec.Rgb

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
__setstate__(self, arg__1: object) -> object __setstate__(self, arg__1: object) -> object [extrait de __setstate__.__doc__]
__str__(self) -> object __str__(self) -> object [extrait de __str__.__doc__]
alpha(self) -> int alpha(self) -> int [extrait de alpha.__doc__]
alphaF(self) -> float alphaF(self) -> float [extrait de alphaF.__doc__]
black(self) -> int black(self) -> int [extrait de black.__doc__]
blackF(self) -> float blackF(self) -> float [extrait de blackF.__doc__]
blue(self) -> int blue(self) -> int [extrait de blue.__doc__]
blueF(self) -> float blueF(self) -> float [extrait de blueF.__doc__]
colorNames() -> typing.List[str] colorNames() -> typing.List[str] [extrait de colorNames.__doc__]
convertTo(self, colorSpec: PySide2.QtGui.QColor.Spec) -> PySide2.QtGui.QColor convertTo(self, colorSpec: PySide2.QtGui.QColor.Spec) -> PySide2.QtGui.QColor [extrait de convertTo.__doc__]
cyan(self) -> int cyan(self) -> int [extrait de cyan.__doc__]
cyanF(self) -> float cyanF(self) -> float [extrait de cyanF.__doc__]
dark(self, f: int = 200) -> PySide2.QtGui.QColor dark(self, f: int = 200) -> PySide2.QtGui.QColor [extrait de dark.__doc__]
darker(self, f: int = 200) -> PySide2.QtGui.QColor darker(self, f: int = 200) -> PySide2.QtGui.QColor [extrait de darker.__doc__]
fromCmyk(c: int, m: int, y: int, k: int, a: int = 255) -> PySide2.QtGui.QColor fromCmyk(c: int, m: int, y: int, k: int, a: int = 255) -> PySide2.QtGui.QColor [extrait de fromCmyk.__doc__]
fromCmykF(c: float, m: float, y: float, k: float, a: float = 1.0) -> PySide2.QtGui.QColor fromCmykF(c: float, m: float, y: float, k: float, a: float = 1.0) -> PySide2.QtGui.QColor [extrait de fromCmykF.__doc__]
fromHsl(h: int, s: int, l: int, a: int = 255) -> PySide2.QtGui.QColor fromHsl(h: int, s: int, l: int, a: int = 255) -> PySide2.QtGui.QColor [extrait de fromHsl.__doc__]
fromHslF(h: float, s: float, l: float, a: float = 1.0) -> PySide2.QtGui.QColor fromHslF(h: float, s: float, l: float, a: float = 1.0) -> PySide2.QtGui.QColor [extrait de fromHslF.__doc__]
fromHsv(h: int, s: int, v: int, a: int = 255) -> PySide2.QtGui.QColor fromHsv(h: int, s: int, v: int, a: int = 255) -> PySide2.QtGui.QColor [extrait de fromHsv.__doc__]
fromHsvF(h: float, s: float, v: float, a: float = 1.0) -> PySide2.QtGui.QColor fromHsvF(h: float, s: float, v: float, a: float = 1.0) -> PySide2.QtGui.QColor [extrait de fromHsvF.__doc__]
fromRgb fromRgb(r: int, g: int, b: int, a: int = 255) -> PySide2.QtGui.QColor [extrait de fromRgb.__doc__]
fromRgba(rgba: int) -> PySide2.QtGui.QColor fromRgba(rgba: int) -> PySide2.QtGui.QColor [extrait de fromRgba.__doc__]
fromRgba64(r: int, g: int, b: int, a: int = 65535) -> PySide2.QtGui.QColor fromRgba64(r: int, g: int, b: int, a: int = 65535) -> PySide2.QtGui.QColor [extrait de fromRgba64.__doc__]
fromRgbF(r: float, g: float, b: float, a: float = 1.0) -> PySide2.QtGui.QColor fromRgbF(r: float, g: float, b: float, a: float = 1.0) -> PySide2.QtGui.QColor [extrait de fromRgbF.__doc__]
getCmyk getCmyk(self) -> typing.Tuple[int, int, int, int, int] [extrait de getCmyk.__doc__]
getCmykF getCmykF(self) -> typing.Tuple[float, float, float, float, float] [extrait de getCmykF.__doc__]
getHsl(self) -> typing.Tuple[int, int, int, int] getHsl(self) -> typing.Tuple[int, int, int, int] [extrait de getHsl.__doc__]
getHslF(self) -> typing.Tuple[float, float, float, float] getHslF(self) -> typing.Tuple[float, float, float, float] [extrait de getHslF.__doc__]
getHsv(self) -> typing.Tuple[int, int, int, int] getHsv(self) -> typing.Tuple[int, int, int, int] [extrait de getHsv.__doc__]
getHsvF(self) -> typing.Tuple[float, float, float, float] getHsvF(self) -> typing.Tuple[float, float, float, float] [extrait de getHsvF.__doc__]
getRgb(self) -> typing.Tuple[int, int, int, int] getRgb(self) -> typing.Tuple[int, int, int, int] [extrait de getRgb.__doc__]
getRgbF(self) -> typing.Tuple[float, float, float, float] getRgbF(self) -> typing.Tuple[float, float, float, float] [extrait de getRgbF.__doc__]
green(self) -> int green(self) -> int [extrait de green.__doc__]
greenF(self) -> float greenF(self) -> float [extrait de greenF.__doc__]
hslHue(self) -> int hslHue(self) -> int [extrait de hslHue.__doc__]
hslHueF(self) -> float hslHueF(self) -> float [extrait de hslHueF.__doc__]
hslSaturation(self) -> int hslSaturation(self) -> int [extrait de hslSaturation.__doc__]
hslSaturationF(self) -> float hslSaturationF(self) -> float [extrait de hslSaturationF.__doc__]
hsvHue(self) -> int hsvHue(self) -> int [extrait de hsvHue.__doc__]
hsvHueF(self) -> float hsvHueF(self) -> float [extrait de hsvHueF.__doc__]
hsvSaturation(self) -> int hsvSaturation(self) -> int [extrait de hsvSaturation.__doc__]
hsvSaturationF(self) -> float hsvSaturationF(self) -> float [extrait de hsvSaturationF.__doc__]
hue(self) -> int hue(self) -> int [extrait de hue.__doc__]
hueF(self) -> float hueF(self) -> float [extrait de hueF.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
isValidColor(name: str) -> bool isValidColor(name: str) -> bool [extrait de isValidColor.__doc__]
light(self, f: int = 150) -> PySide2.QtGui.QColor light(self, f: int = 150) -> PySide2.QtGui.QColor [extrait de light.__doc__]
lighter(self, f: int = 150) -> PySide2.QtGui.QColor lighter(self, f: int = 150) -> PySide2.QtGui.QColor [extrait de lighter.__doc__]
lightness(self) -> int lightness(self) -> int [extrait de lightness.__doc__]
lightnessF(self) -> float lightnessF(self) -> float [extrait de lightnessF.__doc__]
magenta(self) -> int magenta(self) -> int [extrait de magenta.__doc__]
magentaF(self) -> float magentaF(self) -> float [extrait de magentaF.__doc__]
name name(self) -> str [extrait de name.__doc__]
NameFormat
red(self) -> int red(self) -> int [extrait de red.__doc__]
redF(self) -> float redF(self) -> float [extrait de redF.__doc__]
rgb(self) -> int rgb(self) -> int [extrait de rgb.__doc__]
rgba(self) -> int rgba(self) -> int [extrait de rgba.__doc__]
saturation(self) -> int saturation(self) -> int [extrait de saturation.__doc__]
saturationF(self) -> float saturationF(self) -> float [extrait de saturationF.__doc__]
setAlpha(self, alpha: int) setAlpha(self, alpha: int) [extrait de setAlpha.__doc__]
setAlphaF(self, alpha: float) setAlphaF(self, alpha: float) [extrait de setAlphaF.__doc__]
setBlue(self, blue: int) setBlue(self, blue: int) [extrait de setBlue.__doc__]
setBlueF(self, blue: float) setBlueF(self, blue: float) [extrait de setBlueF.__doc__]
setCmyk(self, c: int, m: int, y: int, k: int, a: int = 255) setCmyk(self, c: int, m: int, y: int, k: int, a: int = 255) [extrait de setCmyk.__doc__]
setCmykF(self, c: float, m: float, y: float, k: float, a: float = 1.0) setCmykF(self, c: float, m: float, y: float, k: float, a: float = 1.0) [extrait de setCmykF.__doc__]
setGreen(self, green: int) setGreen(self, green: int) [extrait de setGreen.__doc__]
setGreenF(self, green: float) setGreenF(self, green: float) [extrait de setGreenF.__doc__]
setHsl(self, h: int, s: int, l: int, a: int = 255) setHsl(self, h: int, s: int, l: int, a: int = 255) [extrait de setHsl.__doc__]
setHslF(self, h: float, s: float, l: float, a: float = 1.0) setHslF(self, h: float, s: float, l: float, a: float = 1.0) [extrait de setHslF.__doc__]
setHsv(self, h: int, s: int, v: int, a: int = 255) setHsv(self, h: int, s: int, v: int, a: int = 255) [extrait de setHsv.__doc__]
setHsvF(self, h: float, s: float, v: float, a: float = 1.0) setHsvF(self, h: float, s: float, v: float, a: float = 1.0) [extrait de setHsvF.__doc__]
setNamedColor(self, name: str) setNamedColor(self, name: str) [extrait de setNamedColor.__doc__]
setRed(self, red: int) setRed(self, red: int) [extrait de setRed.__doc__]
setRedF(self, red: float) setRedF(self, red: float) [extrait de setRedF.__doc__]
setRgb setRgb(self, r: int, g: int, b: int, a: int = 255) [extrait de setRgb.__doc__]
setRgba(self, rgba: int) setRgba(self, rgba: int) [extrait de setRgba.__doc__]
setRgbF(self, r: float, g: float, b: float, a: float = 1.0) setRgbF(self, r: float, g: float, b: float, a: float = 1.0) [extrait de setRgbF.__doc__]
Spec
spec(self) -> PySide2.QtGui.QColor.Spec spec(self) -> PySide2.QtGui.QColor.Spec [extrait de spec.__doc__]
toCmyk(self) -> PySide2.QtGui.QColor toCmyk(self) -> PySide2.QtGui.QColor [extrait de toCmyk.__doc__]
toExtendedRgb(self) -> PySide2.QtGui.QColor toExtendedRgb(self) -> PySide2.QtGui.QColor [extrait de toExtendedRgb.__doc__]
toHsl(self) -> PySide2.QtGui.QColor toHsl(self) -> PySide2.QtGui.QColor [extrait de toHsl.__doc__]
toHsv(self) -> PySide2.QtGui.QColor toHsv(self) -> PySide2.QtGui.QColor [extrait de toHsv.__doc__]
toRgb(self) -> PySide2.QtGui.QColor toRgb(self) -> PySide2.QtGui.QColor [extrait de toRgb.__doc__]
toTuple(self) -> object toTuple(self) -> object [extrait de toTuple.__doc__]
value(self) -> int value(self) -> int [extrait de value.__doc__]
valueF(self) -> float valueF(self) -> float [extrait de valueF.__doc__]
yellow(self) -> int yellow(self) -> int [extrait de yellow.__doc__]
yellowF(self) -> float yellowF(self) -> float [extrait de yellowF.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__