QColor
Hierarchy
↳ QColor
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QColor(): QColor
Overrides Component.constructor
Returns: QColor
+ new QColor(nativeElement
: NativeElement): QColor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
nativeElement | NativeElement |
Returns: QColor
+ new QColor(colorString
: string): QColor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
colorString | string |
Returns: QColor
+ new QColor(color
: GlobalColor): QColor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
color | GlobalColor |
Returns: QColor
+ new QColor(r?
: number, g?
: number, b?
: number, a?
: number): QColor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
r? | number |
g? | number |
b? | number |
a? | number |
Returns: QColor
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
alpha
â–¸ alpha(): number
Returns: number
blue
â–¸ blue(): number
Returns: number
green
â–¸ green(): number
Returns: number
red
â–¸ red(): number
Returns: number
rgb
â–¸ rgb(): number
Returns: number
rgba
â–¸ rgba(): number
Returns: number
setAlpha
â–¸ setAlpha(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
setBlue
â–¸ setBlue(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
setGreen
â–¸ setGreen(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
setRed
â–¸ setRed(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
Static
fromQVariant
â–¸ fromQVariant(variant
: QVariant): QColor
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QColor