nodeguy/website/docs/api/generated/classes/qkeysequence.md
2019-12-29 09:37:05 +05:30

111 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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](https://doc.qt.io/qt-5/qkeysequence.html)**
### Example
```javascript
const { QKeySequence } = require("@nodegui/nodegui");
const keySequence = new QKeySequence(`Ctrl+L`);
```
## Hierarchy
* [Component](component.md)
**QKeySequence**
## Index
### Constructors
* [constructor](qkeysequence.md#constructor)
### Properties
* [native](qkeysequence.md#native)
* [nodeChildren](qkeysequence.md#nodechildren)
* [nodeParent](qkeysequence.md#optional-nodeparent)
### Methods
* [count](qkeysequence.md#count)
* [setNodeParent](qkeysequence.md#setnodeparent)
## Constructors
### constructor
\+ **new QKeySequence**(): *[QKeySequence](qkeysequence.md)*
*Overrides [Component](component.md).[constructor](component.md#constructor)*
**Returns:** *[QKeySequence](qkeysequence.md)*
\+ **new QKeySequence**(`keySequence`: string): *[QKeySequence](qkeysequence.md)*
*Overrides [Component](component.md).[constructor](component.md#constructor)*
**Parameters:**
Name | Type |
------ | ------ |
`keySequence` | string |
**Returns:** *[QKeySequence](qkeysequence.md)*
## Properties
### native
**native**: *[NativeElement](../globals.md#nativeelement)*
*Overrides [Component](component.md).[native](component.md#abstract-native)*
___
### nodeChildren
**nodeChildren**: *Set[Component](component.md)*
*Inherited from [Component](component.md).[nodeChildren](component.md#nodechildren)*
___
### `Optional` nodeParent
**nodeParent**? : *[Component](component.md)*
*Inherited from [Component](component.md).[nodeParent](component.md#optional-nodeparent)*
## Methods
### count
**count**(): *number*
**Returns:** *number*
___
### setNodeParent
**setNodeParent**(`parent?`: [Component](component.md)): *void*
*Inherited from [Component](component.md).[setNodeParent](component.md#setnodeparent)*
**Parameters:**
Name | Type |
------ | ------ |
`parent?` | [Component](component.md) |
**Returns:** *void*