MimeDataWrapper QML Type
Exposes a const QMimeData instance. More...
| Import Statement: | import org.kde.draganddrop | 
Properties
- color : var
- formats : list<string>
- hasUrls : bool
- html : string
- mimeData : QMimeData*
- source : var
- text : string
- url : url
- urls : QJsonArray
Methods
- QByteArray getDataAsByteArray(string format)
Detailed Description
In contrast to MimeData, doesn't create a copy of the QMimeData instance.
Property Documentation
| color : var | 
A color if the data stored in the object represents a color (MIME type application/x-color); otherwise QVariant().
| formats : list<string> | 
Mimetypes provided by the mime data instance
See also QMimeData::formats.
| hasUrls : bool | 
See also QMimeData::hasUrls.
| html : string | 
A string if the data stored in the object is HTML (MIME type text/html); otherwise returns an empty string.
| mimeData : QMimeData* | 
Returns the wrapped object
| source : var | 
The graphical item on the scene that started the drag event. It may be null.
| text : string | 
A plain text (MIME type text/plain) representation of the data.
| url : url | 
Url contained in the mimedata
| urls : QJsonArray | 
A list of URLs contained within the MIME data object. URLs correspond to the MIME type text/uri-list.
Method Documentation
| QByteArray getDataAsByteArray(string format) |