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

QByteArray QMimeData::data ( const QString mimetype  )  const

Returns the data stored in the object in the format described by the MIME type specified by mimetype.

Definition at line 386 of file qmimedata.cpp.

References QVariant::toByteArray().

Referenced by QAbstractTableModel::dropMimeData(), QAbstractListModel::dropMimeData(), QAbstractItemModel::dropMimeData(), QDropEvent::encodedData(), QTextEdit::insertFromMimeData(), and QClipboard::text().

{
    Q_D(const QMimeData);
    QVariant data = d->retrieveTypedData(mimetype, QVariant::ByteArray);
    return data.toByteArray();
}


Generated by  Doxygen 1.6.0   Back to index