45 #include <QtCore/qvariant.h> 46 #include <QtCore/qobject.h> 69 void setText(
const QString &text);
73 void setHtml(
const QString &html);
77 void setImageData(
const QVariant &image);
78 bool hasImage()
const;
81 void setColorData(
const QVariant &color);
82 bool hasColor()
const;
86 void removeFormat(
const QString &mimetype);
88 virtual bool hasFormat(
const QString &mimetype)
const;
104 #endif // QMIMEDATA_H The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
Type
This enum type defines the types of variable that a QVariant can contain.
The QMimeData class provides a container for data that records information about its MIME type...
#define Q_DECLARE_PRIVATE(Class)