The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. More...
#include <QMimeSource>
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Inherited by: Q3DragObject and QDropEvent.
virtual | ~QMimeSource () |
virtual QByteArray | encodedData ( const char * format ) const = 0 |
virtual const char * | format ( int i = 0 ) const = 0 |
virtual bool | provides ( const char * mimeType ) const |
The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type.
The preferred approach to drag and drop is to use QDrag in conjunction with QMimeData. See Drag and Drop for details.
Destroys the MIME source.
Returns the encoded data of this object in the specified MIME format.
Returns the (i - 1)-th supported MIME format, or 0.
Returns true if the object can provide the data in format mimeType; otherwise returns false.
If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and QImageDrag::canDecode().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.