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 | null

Inherited from Component.native

Methods

pos

â–¸ pos(): object

Returns: object

  • x: number

  • y: number


setPos

â–¸ setPos(x: number, y: number): void

Parameters:

NameType
xnumber
ynumber

Returns: void