The QWindowsMime class maps open-standard MIME to Window Clipboard formats.
.PP
Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Windows although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in formats of Windows.
.PP
By instantiating subclasses of QWindowsMime that provide conversions between Windows Clipboard and MIME formats, you can convert proprietary clipboard formats to MIME formats.
.PP
Qt has predefined support for the following Windows Clipboard formats:
.TP
CF_UNICODETEXT - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag.
.TP
CF_TEXT - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag.
.TP
CF_DIB - converted to "image/*", where * is a Qt image format, and supported by QImageDrag.
.TP
CF_HDROP - converted to "text/uri-list", and supported by QUriDrag.
.PP
An example use of this class would be to map the Windows Metafile clipboard format (CF_METAFILEPICT) to and from the MIME type "image/x-wmf". This conversion might simply be adding or removing a header, or even just passing on the data. See the Drag-and-Drop documentation for more information on choosing and definition MIME types.
.PP
You can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime().
.PP
See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QWindowsMime::QWindowsMime ()"
Constructs a new conversion object, adding it to the globally accessed list of available convertors.
Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIcf\fR; otherwise returns FALSE.
.PP
All subclasses must reimplement this pure virtual function.
.SH "int QWindowsMime::cf ( int index )\fC [pure virtual]\fR"
Returns the Windows Clipboard format supported by this convertor that is ordinarily at position \fIindex\fR. This means that cf(0) returns the first Windows Clipboard format supported, and cf(countCf()-1) returns the last. If \fIindex\fR is out of range the return value is undefined.
.PP
All subclasses must reimplement this pure virtual function.