QCursor

The QCursor class provides scalable icons in different modes and states.

This class is a JS wrapper around Qt's QCursor class

Example

const { QCursor } = require("@nodegui/nodegui");
const cursor = new QCursor();

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QCursor(): QCursor

Overrides Component.constructor

Returns: QCursor

+ new QCursor(native: NativeElement): QCursor

Overrides Component.constructor

Parameters:

NameType
nativeNativeElement

Returns: QCursor

+ new QCursor(shape: CursorShape): QCursor

Overrides Component.constructor

Parameters:

NameType
shapeCursorShape

Returns: QCursor

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

pos

pos(): object

Returns: object


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setPos

setPos(x: number, y: number): void

Parameters:

NameType
xnumber
ynumber

Returns: void