Event sent as a drag-and-drop is in progress. More...
#include <qevent.h>
Inherits QEvent.
Inherited by QDragEnterEvent.
When a widgets accepts drop events, it will receive this event repeatedly while the the drag is inside that widget. The widget should examine the event, especially seeing what data it provides, and accept() the drop if appropriate.
Creates a QDragMoveEvent for which the mouse is at point pos.
Note that internal state is also involved with QDragMoveEvent, so it is not useful to create these yourself.
[protected]
Creates a QDragMoveEvent for which the mouse is at point pos, and the given event type.
Note that internal state is also involved with QDragMoveEvent, so it is not useful to create these yourself.
Call this to indicate that the event provides data which your widget can process. Use provides(), or preferrably, the canDecode() methods of existing QDragObject subclasses, such as QTextDrag::canDecode(), or your own subclasses.
The same as accept() above, but also notifies that future moves will also be acceptable if they remain withing the rectangle r on the widget - this can improve performance, but may also be ignored by the underlying system.
{ return rect; }
Returns the rectangle for which the acceptance of the move event applies.
Returns a byte array containing the payload data of this drag, in format.
data() normally needs to get the data from the drag source, which is potentially very slow, so it's advisable to call this function only if you're sure that you will need the data in format.
See also: format().
Returns a string describing one of the available data types for this drag. Common examples are "text/plain" and "image/gif". If n is less than zero or greater than the number of available data types, format() returns 0.
This function is provided mainly for debugging. Most drop targets will use provides().
See also: data() and provides().
The opposite of accept().
The opposite of accept(const QRect&).
Returns TRUE if accept() has been called.
Returns the position of the mouse when the event occurred.
Returns TRUE if this drag object provides format mimeType or FALSE if it does not.
See also: data().
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.
It was generated from the following files:
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.42
|