QKeySequence
The QKeySequence class encapsulates a key sequence as used by shortcuts. .
This class is a JS wrapper around Qt's QKeySequence class
Example
Hierarchy
↳ QKeySequence
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 | null
Inherited from Component.native
Methods
count
â–¸ count(): number
Returns: number
isEmpty
â–¸ isEmpty(): boolean
Returns: boolean
matches
â–¸ matches(seq
: QKeySequence): SequenceMatch
Parameters:
Name | Type |
---|---|
seq | QKeySequence |
Returns: SequenceMatch
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