<class name="QDragMoveEvent" doc="/** <p>The <a href="QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDragMoveEvent</tt></a> class provides an event which is sent while a drag and drop action is in progress.</p> <p>A widget will receive drag move events repeatedly while the drag is within its boundaries, if it accepts drop events</tt> and enter events</tt>. The widget should examine the event to see what kind of data it provides</tt>, and call the <a href="QDragMoveEvent.html#accept(com.trolltech.qt.core.QRect)"><tt>accept</tt></a> function to accept the drop if appropriate.</p> <p>The rectangle supplied by the <a href="QDragMoveEvent.html#answerRect()"><tt>answerRect</tt></a> function can be used to restrict drops to certain parts of the widget. For example, we can check whether the rectangle intersects with the geometry of a certain child widget and only call acceptProposedAction() if that is the case.</p> <p>Note that this class inherits most of its functionality from <a href="QDropEvent.html#QDropEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDropEvent</tt></a>.</p> @see <a href="QDragEnterEvent.html"><tt>QDragEnterEvent</tt></a> @see <a href="QDragLeaveEvent.html"><tt>QDragLeaveEvent</tt></a> @see <a href="QDropEvent.html#QDropEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDropEvent</tt></a> */"> <method name="public QDragMoveEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.Qt.DropActions actions, com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, com.trolltech.qt.core.QEvent.Type type)" doc="/** <p>Creates a <a href="QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDragMoveEvent</tt></a> of the required <tt>type</tt> indicating that the mouse is at position <tt>pos</tt> given within a widget.</p> <p>The mouse and keyboard states are specified by <tt>buttons</tt> and <tt>modifiers</tt>, and the <tt>actions</tt> describe the types of drag and drop operation that are possible. The drag data is passed as MIME-encoded information in <tt>data</tt>.</p> <p><b>Warning:</b> Do not attempt to create a <a href="QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDragMoveEvent</tt></a> yourself. These objects rely on Qt's internal state.</p> */"/> <method name="public QDragMoveEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.Qt.DropActions actions, com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/** <p>Equivalent to <a href="QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)"><tt>QDragMoveEvent</tt></a>(<tt>pos</tt>, <tt>actions</tt>, <tt>data</tt>, <tt>buttons</tt>, <tt>modifiers</tt>, DragMove). */"/> <method name="public final void accept(com.trolltech.qt.core.QRect r)" doc="/** <p>The same as <a href="QDragMoveEvent.html#accept(com.trolltech.qt.core.QRect)"><tt>accept</tt></a>, but also notifies that future moves will also be acceptable if they remain within the <tt>r</tt> given on the widget. This can improve performance, but may also be ignored by the underlying system.</p> <p>If the rectangle is empty, drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.</p> */"/> <method name="public final com.trolltech.qt.core.QRect answerRect()" doc="/** <p>Returns the rectangle in the widget where the drop will occur if accepted. You can use this information to restrict drops to certain places on the widget.</p> */"/> <method name="public final void ignore(com.trolltech.qt.core.QRect r)" doc="/** <p>The opposite of the accept(const <a href="%2E%2E/core/QRect.html"><tt>QRect</tt></a>&amp;) function. Moves within the <tt>r</tt> are not acceptable, and will be ignored.</p> */"/> <method name="protected final com.trolltech.qt.core.QRect rect()"/> <method name="protected final void setRect(com.trolltech.qt.core.QRect rect)"/> </class>