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