1QDragMoveEvent(3qt)                                        QDragMoveEvent(3qt)
2
3
4

NAME

6       QDragMoveEvent - Event which is sent while a drag and drop is in
7       progress
8

SYNOPSIS

10       #include <qevent.h>
11
12       Inherits QDropEvent.
13
14       Inherited by QDragEnterEvent.
15
16   Public Members
17       QDragMoveEvent ( const QPoint & pos, Type type = DragMove )
18       QRect answerRect () const
19       void accept ( const QRect & r )
20       void ignore ( const QRect & r )
21

DESCRIPTION

23       The QDragMoveEvent class provides an event which is sent while a drag
24       and drop is in progress.
25
26       When a widget accepts drop events, it will receive this event
27       repeatedly while the drag is within the widget's boundaries. The widget
28       should examine the event to see what data it provides, and accept() the
29       drop if appropriate.
30
31       Note that this class inherits most of its functionality from
32       QDropEvent.
33
34       See also Drag And Drop Classes and Event Classes.
35

MEMBER FUNCTION DOCUMENTATION

QDragMoveEvent::QDragMoveEvent ( const QPoint & pos, Type type = DragMove )

38       Creates a QDragMoveEvent for which the mouse is at point pos, and the
39       event is of type type.
40
41       Warning: Do not create a QDragMoveEvent yourself since these objects
42       rely on Qt's internal state.
43

void QDragMoveEvent::accept ( const QRect & r )

45       The same as accept(), but also notifies that future moves will also be
46       acceptable if they remain within the rectangle r on the widget: this
47       can improve performance, but may also be ignored by the underlying
48       system.
49
50       If the rectangle is empty, then drag move events will be sent
51       continuously. This is useful if the source is scrolling in a timer
52       event.
53
54       Examples:
55

QRect QDragMoveEvent::answerRect () const

57       Returns the rectangle for which the acceptance of the move event
58       applies.
59

void QDragMoveEvent::ignore ( const QRect & r )

61       The opposite of accept(const QRect&), i.e. says that moves within
62       rectangle r are not acceptable (will be ignored).
63
64       Example: dirview/dirview.cpp.
65
66

SEE ALSO

68       http://doc.trolltech.com/qdragmoveevent.html
69       http://www.trolltech.com/faq/tech.html
70
72       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
73       license file included in the distribution for a complete license
74       statement.
75

AUTHOR

77       Generated automatically from the source code.
78

BUGS

80       If you find a bug in Qt, please report it as described in
81       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
82       help you. Thank you.
83
84       The definitive Qt documentation is provided in HTML format; it is
85       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
86       web browser. This man page is provided as a convenience for those users
87       who prefer man pages, although this format is not officially supported
88       by Trolltech.
89
90       If you find errors in this manual page, please report them to qt-
91       bugs@trolltech.com.  Please include the name of the manual page
92       (qdragmoveevent.3qt) and the Qt version (3.3.8).
93
94
95
96Trolltech AS                    2 February 2007            QDragMoveEvent(3qt)
Impressum