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

QString QMimeData::html (  )  const

Returns a string if the data stored in the object is HTML; otherwise returns an empty string.

Definition at line 303 of file qmimedata.cpp.

References QVariant::toString().

Referenced by QTextEdit::insertFromMimeData().

    Q_D(const QMimeData);
    QVariant data = d->retrieveTypedData(QLatin1String("text/html"), QVariant::String);
    return data.toString();

Generated by  Doxygen 1.6.0   Back to index