nodeguy/website/docs/api/generated/classes/qclipboard.md
2020-03-15 12:35:48 +01:00

3.3 KiB
Raw Permalink 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

Overrides Component.constructor

Parameters:

Name Type
native NativeElement

Returns: QClipboard

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: SetComponent

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


pixmap

pixmap(mode: QClipboardMode): QPixmap

Parameters:

Name Type
mode QClipboardMode

Returns: QPixmap


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

Name Type
parent? Component

Returns: void


setPixmap

setPixmap(pixmap: QPixmap, mode: QClipboardMode): void

Parameters:

Name Type
pixmap QPixmap
mode QClipboardMode

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