Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_gui_kernel_qclipboard.cpp

//! [0]
QClipboard *clipboard = QApplication::clipboard();
QString originalText = clipboard->text();
...
clipboard->setText(newText);
//! [0]


//! [1]
QMimeData *data = new QMimeData;
data->setImageData(image);
clipboard->setMimeData(data, mode);
//! [1]

Generated by  Doxygen 1.6.0   Back to index