QClipboard* clipboard = QApplication::clipboard(); QString text = clipboard->text();
QClipboard* clipboard = QApplication::clipboard(); clipboard->setText("Hello World!");
QClipboard* clipboard = QApplication::clipboard(); if (clipboard->mimeData()->hasImage()) { // do something with the image }Package Library: Qt (QtCore module)