The QImageDrag class provides a drag-and-drop object for transferring images. More...
#include <qdragobject.h>
Inherits QDragObject.
Images are offered to the receiving application in multiple formats, determined by the output formats in Qt.
For detailed information about drag-and-drop, see the QDragObject class.
Constructs an image drag object and sets it to image. dragSource must be the drag source, name is the object name.
Constructs a default text drag object. dragSource must be the drag source, name is the object name.
Destructs the image drag object and frees up all allocated resources.
[static]
Returns TRUE if the information in e can be decoded into an image.
See also decode().
Examples: desktop/desktop.cpp
[static]
Attempts to decode the dropped information in e into img, returning TRUE if successful.
See also canDecode().
[static]
Attempts to decode the dropped information in e into pm, returning TRUE if successful.
This is a convenience function that converts to pm via a QImage.
See also canDecode().
Examples: desktop/desktop.cpp
[virtual]
Reimplemented for internal reasons; the API is not affected.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QMimeSource.
[virtual]
Sets the image to be dragged. You will need to call this if you did not pass the image during construction.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright © 2000 Trolltech | Trademarks | Qt version 2.2.1
|