Skip to main content

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