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 (MIME type text/html); otherwise returns an empty string.

See also:
hasHtml(), setData()

Definition at line 370 of file qmimedata.cpp.

References QVariant::toString().

{
    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