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
↳ QCursor
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QCursor(): QCursor
Overrides Component.constructor
Returns: QCursor
+ new QCursor(native
: NativeElement): QCursor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
native | NativeElement |
Returns: QCursor
+ new QCursor(shape
: CursorShape): QCursor
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
shape | CursorShape |
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:
Name | Type |
---|---|
x | number |
y | number |
Returns: void