#include <QtCore/QMimeData>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QMimeData


Public Functions Index

QMimeData ()
~QMimeData ()
voidclear ()
QVariantcolorData () const
QByteArraydata (const QString &mimetype) const
virtual QStringListformats () const
boolhasColor () const
virtual boolhasFormat (const QString &mimetype) const
boolhasHtml () const
boolhasImage () const
boolhasText () const
boolhasUrls () const
QStringhtml () const
QVariantimageData () const
voidremoveFormat (const QString &mimetype)
voidsetColorData (const QVariant &color)
voidsetData (const QString &mimetype, const QByteArray &data)
voidsetHtml (const QString &html)
voidsetImageData (const QVariant &image)
voidsetText (const QString &text)
voidsetUrls (const QList< QUrl > &urls)
QStringtext () const
QList< QUrl >urls () const

Protected Functions Index

virtual QVariantretrieveData (const QString &mimetype, QVariant::Type preferredType) const

Public Functions

QMimeData ()

~QMimeData ()


void clear ()

QVariant colorData ()

QByteArray data (

virtualQStringList formats ()

bool hasColor ()

virtual bool hasFormat (

bool hasHtml ()

bool hasImage ()

bool hasText ()

bool hasUrls ()

QString html ()

QVariant imageData ()

void removeFormat (

void setColorData (

void setData (

void setHtml (

void setImageData (

void setText (

void setUrls (

QString text ()

QList< QUrl > urls ()

Protected Functions

virtualQVariant retrieveData (
  • const QString &mimetype,
  • QVariant::TypepreferredType )

Last modified: 2015-07-24

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus