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

const { QPicture } = require("@nodegui/nodegui");
const picture = new QPicture();

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QPicture(): QPicture

Overrides Component.constructor

Returns: QPicture

+ new QPicture(native: NativeElement): QPicture

Overrides Component.constructor

Parameters:

NameType
nativeNativeElement

Returns: QPicture

+ new QPicture(formatVersion: number): QPicture

Overrides Component.constructor

Parameters:

NameType
formatVersionnumber

Returns: QPicture

Properties

native

• native: NativeElement

Overrides Component.native


nodeChildren

• nodeChildren: Set‹Component›

Inherited from Component.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from Component.nodeParent

Methods

boundingRect

â–¸ boundingRect(): QRect

Returns: QRect


isNull

â–¸ isNull(): boolean

Returns: boolean


load

â–¸ load(fileName: string): boolean

Parameters:

NameType
fileNamestring

Returns: boolean


save

â–¸ save(fileName: string): boolean

Parameters:

NameType
fileNamestring

Returns: boolean


setBoundingRect

â–¸ setBoundingRect(r: QRect): void

Parameters:

NameType
rQRect

Returns: void


setNodeParent

â–¸ setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


size

â–¸ size(): number

Returns: number