QRect

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QRect(nativeOrX?: NativeElement | number, y: number, width: number, height: number): QRect

Overrides Component.constructor

Parameters:

NameTypeDefault
nativeOrX?NativeElement | number-
ynumber0
widthnumber0
heightnumber0

Returns: QRect

Properties

native

• native: NativeElement | null

Inherited from Component.native

Methods

height

â–¸ height(): number

Returns: number


left

â–¸ left(): number

Returns: number


setHeight

â–¸ setHeight(height: number): void

Parameters:

NameType
heightnumber

Returns: void


setLeft

â–¸ setLeft(height: number): void

Parameters:

NameType
heightnumber

Returns: void


setTop

â–¸ setTop(height: number): void

Parameters:

NameType
heightnumber

Returns: void


setWidth

â–¸ setWidth(width: number): void

Parameters:

NameType
widthnumber

Returns: void


top

â–¸ top(): number

Returns: number


width

â–¸ width(): number

Returns: number


Static fromQVariant

â–¸ fromQVariant(variant: QVariant): QRect

Parameters:

NameType
variantQVariant

Returns: QRect