QColor

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QColor(): QColor

Overrides Component.constructor

Returns: QColor

+ new QColor(nativeElement: NativeElement): QColor

Overrides Component.constructor

Parameters:

NameType
nativeElementNativeElement

Returns: QColor

+ new QColor(colorString: string): QColor

Overrides Component.constructor

Parameters:

NameType
colorStringstring

Returns: QColor

+ new QColor(color: GlobalColor): QColor

Overrides Component.constructor

Parameters:

NameType
colorGlobalColor

Returns: QColor

+ new QColor(r?: undefined | number, g?: undefined | number, b?: undefined | number, a?: undefined | number): QColor

Overrides Component.constructor

Parameters:

NameType
r?undefined | number
g?undefined | number
b?undefined | number
a?undefined | number

Returns: QColor

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

alpha

alpha(): number

Returns: number


blue

blue(): number

Returns: number


green

green(): number

Returns: number


red

red(): number

Returns: number


setAlpha

setAlpha(value: number): void

Parameters:

NameType
valuenumber

Returns: void


setBlue

setBlue(value: number): void

Parameters:

NameType
valuenumber

Returns: void


setGreen

setGreen(value: number): void

Parameters:

NameType
valuenumber

Returns: void


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setRed

setRed(value: number): void

Parameters:

NameType
valuenumber

Returns: void


Static fromQVariant

fromQVariant(variant: QVariant): QColor

Parameters:

NameType
variantQVariant

Returns: QColor