QDragMoveEvent(3qt)

NAME
QDragMoveEvent - Event sent as a drag-and-drop is in progress

#include <qevent.h>

Inherits QDropEvent.

Inherited by QDragEnterEvent.

  Public Members
QDragMoveEvent ( const QPoint & pos, Type typ=DragMove )
QRect answerRect () const
void accept ( const QRect & r )
void ignore ( const QRect & r )

DESCRIPTION
Event sent as a drag-and-drop is in progress.

When a widget 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.

Note that this class inherits most of its functionality from QDropEvent.

Examples: desktop/desktop.cpp

MEMBER FUNCTION DOCUMENTATION

QDragMoveEvent::QDragMoveEvent ( const QPoint & pos, Type type=DragMove )
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.

void QDragMoveEvent::accept ( bool y=TRUE )
Reimplemented for internal reasons; the API is not affected.

void QDragMoveEvent::accept ( const QRect & r )
The same as accept(), but also notifies that future moves will also be acceptable if they remain within the rectangle r on the widget - this can improve performance, but may also be ignored by the underlying system.

If the rectangle is empty, then drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.

QRect QDragMoveEvent::answerRect () const
Returns the rectangle for which the acceptance of the move event applies.

void QDragMoveEvent::ignore ()
Reimplemented for internal reasons; the API is not affected.

void QDragMoveEvent::ignore ( const QRect & r )
The opposite of accept(const QRect&).

SEE ALSO
http://doc.trolltech.com/qdragmoveevent.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qdragmoveevent.3qt) and the Qt version (2.3.0).