Skip to content

Latest commit

 

History

History
176 lines (101 loc) · 3.45 KB

qkeysequence.md

File metadata and controls

176 lines (101 loc) · 3.45 KB
id qkeysequence
title QKeySequence
sidebar_label 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:

Name Type
native NativeElement

Returns: QKeySequence

+ new QKeySequence(keySequence: string): QKeySequence

Overrides Component.constructor

Parameters:

Name Type
keySequence string

Returns: QKeySequence

Properties

native

• native: NativeElement

Overrides Component.native


nodeChildren

• nodeChildren: Set‹Component›

Inherited from Component.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from Component.nodeParent

Methods

count

▸ count(): number

Returns: number


isEmpty

▸ isEmpty(): boolean

Returns: boolean


matches

▸ matches(seq: QKeySequence): SequenceMatch

Parameters:

Name Type
seq QKeySequence

Returns: SequenceMatch


setNodeParent

▸ setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

Name Type
parent? Component

Returns: void


toString

▸ toString(format: SequenceFormat): string

Parameters:

Name Type
format SequenceFormat

Returns: string


Static fromQVariant

▸ fromQVariant(variant: QVariant): QKeySequence

Parameters:

Name Type
variant QVariant

Returns: QKeySequence