Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QImageDrag class provides a drag and drop object for transferring images. More...
#include <QImageDrag>
Inherits QDragObject.
The QImageDrag class provides a drag and drop object for transferring images.
Images are offered to the receiving application in multiple formats, determined by Qt's output formats.
For more information about drag and drop, see the QDragObject class and the drag and drop documentation.
Constructs an image drag object for the given dragSource and sets its data to the given image. The dragSource is passed to the QDragObject constructor.
Constructs a default image drag object for the given dragSource. The dragSource is passed to the QDragObject constructor.
Destroys the image drag object.
Returns true if the information in the MIME source can be decoded into an image; otherwise returns false.
See also decode().
Decode the dropped information in the MIME source into the image. Returns true if successful; otherwise returns false.
See also canDecode().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Decodes the dropped information in the MIME source into the pixmap. Returns true if successful; otherwise returns false.
This is a convenience function that converts the information to a QPixmap via a QImage.
See also canDecode().
Sets the image to be dragged. You will need to call this if you did not pass the image during construction.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |