23 #include "clipboard.h" 25 #include <QApplication> 30 QClipboard *clipboard = QApplication::clipboard();
31 clipboard->setText(text, QClipboard::Clipboard);
32 clipboard->setText(text, QClipboard::Selection);
static void setText(const QString &text)
Sets text both in clipboard and selection modes.