Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QStoredDrag class provides a simple stored-value drag object for arbitrary MIME data. More...
#include <QStoredDrag>
Inherits QDragObject.
Inherited by QUriDrag and QColorDrag.
The QStoredDrag class provides a simple stored-value drag object for arbitrary MIME data.
When a block of data has only one representation, you can use a QStoredDrag to hold it.
For more information about drag and drop, see the QDragObject class and the drag and drop documentation.
Constructs a QStoredDrag of the given mimeType for the given dragSource. The dragSource is passed to the QDragObject constructor, and the format is set to the mimeType.
The data will be unset. Use setEncodedData() to set it.
Destroys the drag object.
Returns the stored data in the format given.
Reimplemented from QMimeSource.
See also setEncodedData().
Sets the encoded data of this drag object. The encoded data is delivered to drop sites; it must be in a strictly defined and portable format.
The drag object can't be dropped (by the user) until this function has been called.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |