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:

NameType
nativeNativeElement

Returns: QClipboard

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

clear

clear(mode: QClipboardMode): void

Parameters:

NameType
modeQClipboardMode

Returns: void


pixmap

pixmap(mode: QClipboardMode): QPixmap

Parameters:

NameType
modeQClipboardMode

Returns: QPixmap


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setPixmap

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

Parameters:

NameType
pixmapQPixmap
modeQClipboardMode

Returns: void


setText

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

Parameters:

NameType
textstring
modeQClipboardMode

Returns: void


text

text(mode: QClipboardMode): string

Parameters:

NameType
modeQClipboardMode

Returns: string