nodeguy/website/docs/api/generated/classes/qclipboard.md
Atul R 392aa3cd4c
Adds automatic docs for now (#308)
* adds basic typedoc

* backup

* Adds all docs to source code

* Adds autogenerated docs

* Fixes doc links

* Updates docs
2019-12-29 00:42:06 +05:30

2.6 KiB
Raw Blame History

id title sidebar_label
qclipboard QClipboard QClipboard

The QClipboard class provides access to the window system clipboard.

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

Example

const {
QClipboard,
QClipboardMode,
QApplication
} = require("@nodegui/nodegui");

const clipboard = QApplication.clipboard();
const text = clipboard.text(QClipboardMode.Clipboard);

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QClipboard(native: NativeElement): QClipboard

Parameters:

Name Type
native NativeElement

Returns: QClipboard

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Setunknown = new Set()

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

clear

clear(mode: QClipboardMode): void

Parameters:

Name Type
mode QClipboardMode

Returns: void


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

Name Type
parent? Component

Returns: void


setText

setText(text: string, mode: QClipboardMode): void

Parameters:

Name Type
text string
mode QClipboardMode

Returns: void


text

text(mode: QClipboardMode): string

Parameters:

Name Type
mode QClipboardMode

Returns: string