Skip to main content

QKeySequence

The QKeySequence class encapsulates a key sequence as used by shortcuts. .

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

Example

const { QKeySequence } = require("@nodegui/nodegui");

const keySequence = new QKeySequence(`Ctrl+L`);

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QKeySequence(): QKeySequence

Overrides Component.constructor

Returns: QKeySequence

+ new QKeySequence(native: NativeElement): QKeySequence

Overrides Component.constructor

Parameters:

NameType
nativeNativeElement

Returns: QKeySequence

+ new QKeySequence(keySequence: string): QKeySequence

Overrides Component.constructor

Parameters:

NameType
keySequencestring

Returns: QKeySequence

Properties

native

native: NativeElement | null

Inherited from Component.native

Methods

count

count(): number

Returns: number


isEmpty

isEmpty(): boolean

Returns: boolean


matches

matches(seq: QKeySequence): SequenceMatch

Parameters:

NameType
seqQKeySequence

Returns: SequenceMatch


toString

toString(format: SequenceFormat): string

Parameters:

NameType
formatSequenceFormat

Returns: string


Static fromQVariant

fromQVariant(variant: QVariant): QKeySequence

Parameters:

NameType
variantQVariant

Returns: QKeySequence