QPicture
The QPicture class is a paint device that records and replays QPainter commands.
This class is a JS wrapper around Qt's QPicture class
Example
Hierarchy
↳ QPicture
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QPicture(): QPicture
Overrides Component.constructor
Returns: QPicture
+ new QPicture(native
: NativeElement): QPicture
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
native | NativeElement |
Returns: QPicture
+ new QPicture(formatVersion
: number): QPicture
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
formatVersion | number |
Returns: QPicture
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
boundingRect
â–¸ boundingRect(): QRect
Returns: QRect
isNull
â–¸ isNull(): boolean
Returns: boolean
load
â–¸ load(fileName
: string): boolean
Parameters:
Name | Type |
---|---|
fileName | string |
Returns: boolean
save
â–¸ save(fileName
: string): boolean
Parameters:
Name | Type |
---|---|
fileName | string |
Returns: boolean
setBoundingRect
â–¸ setBoundingRect(r
: QRect): void
Parameters:
Name | Type |
---|---|
r | QRect |
Returns: void
size
â–¸ size(): number
Returns: number