1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qdnd_x11.cpp:1391 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QDragMoveEvent Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDragMoveEvent Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qevent-h.html">qevent.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qdropevent.html">QDropEvent</a>.
|
---|
38 | <p>Inherited by <a href="qdragenterevent.html">QDragEnterEvent</a>.
|
---|
39 | <p><a href="qdragmoveevent-members.html">List of all member functions.</a>
|
---|
40 | <h2>Public Members</h2>
|
---|
41 | <ul>
|
---|
42 | <li class=fn><a href="#QDragMoveEvent"><b>QDragMoveEvent</b></a> ( const QPoint & pos, Type type = DragMove )</li>
|
---|
43 | <li class=fn>QRect <a href="#answerRect"><b>answerRect</b></a> () const</li>
|
---|
44 | <li class=fn>void <a href="#accept"><b>accept</b></a> ( const QRect & r )</li>
|
---|
45 | <li class=fn>void <a href="#ignore"><b>ignore</b></a> ( const QRect & r )</li>
|
---|
46 | </ul>
|
---|
47 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
51 |
|
---|
52 | The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
|
---|
53 | <p> When a widget <a href="qwidget.html#setAcceptDrops">accepts drop
|
---|
54 | events</a>, it will receive this event repeatedly while the
|
---|
55 | drag is within the widget's boundaries. The widget should examine
|
---|
56 | the event to see what data it <a href="qdropevent.html#provides">provides</a>, and <a href="#accept">accept</a>() the drop if appropriate.
|
---|
57 | <p> Note that this class inherits most of its functionality from
|
---|
58 | <a href="qdropevent.html">QDropEvent</a>.
|
---|
59 | <p>See also <a href="draganddrop.html">Drag And Drop Classes</a> and <a href="events.html">Event Classes</a>.
|
---|
60 |
|
---|
61 | <hr><h2>Member Function Documentation</h2>
|
---|
62 | <h3 class=fn><a name="QDragMoveEvent"></a>QDragMoveEvent::QDragMoveEvent ( const <a href="qpoint.html">QPoint</a> & pos, <a href="qevent.html#Type-enum">Type</a> type = DragMove )
|
---|
63 | </h3>
|
---|
64 |
|
---|
65 | <p> Creates a QDragMoveEvent for which the mouse is at point <em>pos</em>,
|
---|
66 | and the event is of type <em>type</em>.
|
---|
67 | <p> <b>Warning:</b> Do not create a QDragMoveEvent yourself since these
|
---|
68 | objects rely on Qt's internal state.
|
---|
69 |
|
---|
70 | <h3 class=fn>void <a name="accept"></a>QDragMoveEvent::accept ( const <a href="qrect.html">QRect</a> & r )
|
---|
71 | </h3>
|
---|
72 |
|
---|
73 | <p> The same as <a href="#accept">accept</a>(), but also notifies that future moves will
|
---|
74 | also be acceptable if they remain within the rectangle <em>r</em> on the
|
---|
75 | widget: this can improve performance, but may also be ignored by
|
---|
76 | the underlying system.
|
---|
77 | <p> If the rectangle is <a href="qrect.html#isEmpty">empty</a>, then
|
---|
78 | drag move events will be sent continuously. This is useful if the
|
---|
79 | source is scrolling in a timer event.
|
---|
80 |
|
---|
81 | <p>Examples: <a href="desktop-example.html#x1727">desktop/desktop.cpp</a> and <a href="dirview-example.html#x1668">dirview/dirview.cpp</a>.
|
---|
82 | <h3 class=fn><a href="qrect.html">QRect</a> <a name="answerRect"></a>QDragMoveEvent::answerRect () const
|
---|
83 | </h3>
|
---|
84 |
|
---|
85 | <p> Returns the rectangle for which the acceptance of the move event
|
---|
86 | applies.
|
---|
87 |
|
---|
88 | <h3 class=fn>void <a name="ignore"></a>QDragMoveEvent::ignore ( const <a href="qrect.html">QRect</a> & r )
|
---|
89 | </h3>
|
---|
90 |
|
---|
91 | <p> The opposite of <a href="#accept">accept</a>(const <a href="qrect.html">QRect</a>&), i.e. says that moves within
|
---|
92 | rectangle <em>r</em> are not acceptable (will be ignored).
|
---|
93 |
|
---|
94 | <p>Example: <a href="dirview-example.html#x1669">dirview/dirview.cpp</a>.
|
---|
95 | <!-- eof -->
|
---|
96 | <hr><p>
|
---|
97 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
98 | Copyright © 1995-2007
|
---|
99 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
100 | <table width=100% cellspacing=0 border=0><tr>
|
---|
101 | <td>Copyright © 2007
|
---|
102 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
103 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
104 | </table></div></address></body>
|
---|
105 | </html>
|
---|