QRect
Hierarchy
-
↳ QRect
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QRect(nativeOrX?
: NativeElement | number, y
: number, width
: number, height
: number): QRect
Overrides Component.constructor
Parameters:
Name | Type | Default |
---|---|---|
nativeOrX? | NativeElement | number | - |
y | number | 0 |
width | number | 0 |
height | number | 0 |
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:
Name | Type |
---|---|
height | number |
Returns: void
setLeft
▸ setLeft(height
: number): void
Parameters:
Name | Type |
---|---|
height | number |
Returns: void
setTop
▸ setTop(height
: number): void
Parameters:
Name | Type |
---|---|
height | number |
Returns: void
setWidth
▸ setWidth(width
: number): void
Parameters:
Name | Type |
---|---|
width | number |
Returns: void
top
▸ top(): number
Returns: number
width
▸ width(): number
Returns: number
Static
fromQVariant
▸ fromQVariant(variant
: QVariant): QRect
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QRect