QClipboard::Mode

Parent Previous Next

enum QClipboard::Mode

This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.




Constant

Value

Description

QClipboard::Clipboard

0

indicates that data should be stored and retrieved from the global clipboard.

QClipboard::Selection

1

indicates that data should be stored and retrieved from the global mouse selection. Support for Selection is provided only on systems with a global mouse selection (e.g. X11).

QClipboard::FindBuffer

2

indicates that data should be stored and retrieved from the Find buffer. This mode is used for holding search strings on Mac OS X

From: http://doc.trolltech.com/latest/qclipboard.html#Mode-enum


Notes:—

const QMimeData * QClipboard::mimeData ( Mode mode = Clipboard ) const

Returns a reference to a QMimeData representation of the current clipboard data.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer.

void QClipboard::setMimeData ( QMimeData * srcMode mode = Clipboard )

Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the data is stored in the search string buffer

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor