source: trunk/doc/html/qdragmoveevent.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.0 KB
Line 
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"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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 &lt;<a href="qevent-h.html">qevent.h</a>&gt;</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&nbsp;QPoint&nbsp;&amp;&nbsp;pos, Type&nbsp;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&nbsp;QRect&nbsp;&amp;&nbsp;r )</li>
45<li class=fn>void <a href="#ignore"><b>ignore</b></a> ( const&nbsp;QRect&nbsp;&amp;&nbsp;r )</li>
46</ul>
47<hr><a name="details"></a><h2>Detailed Description</h2>
48
49
50
51
52The 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
55drag is within the widget's boundaries. The widget should examine
56the 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&nbsp;<a href="qpoint.html">QPoint</a>&nbsp;&amp;&nbsp;pos, <a href="qevent.html#Type-enum">Type</a>&nbsp;type = DragMove )
63</h3>
64
65<p> Creates a QDragMoveEvent for which the mouse is at point <em>pos</em>,
66and the event is of type <em>type</em>.
67<p> <b>Warning:</b> Do not create a QDragMoveEvent yourself since these
68objects rely on Qt's internal state.
69
70<h3 class=fn>void <a name="accept"></a>QDragMoveEvent::accept ( const&nbsp;<a href="qrect.html">QRect</a>&nbsp;&amp;&nbsp;r )
71</h3>
72
73<p> The same as <a href="#accept">accept</a>(), but also notifies that future moves will
74also be acceptable if they remain within the rectangle <em>r</em> on the
75widget: this can improve performance, but may also be ignored by
76the underlying system.
77<p> If the rectangle is <a href="qrect.html#isEmpty">empty</a>, then
78drag move events will be sent continuously. This is useful if the
79source 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
86applies.
87
88<h3 class=fn>void <a name="ignore"></a>QDragMoveEvent::ignore ( const&nbsp;<a href="qrect.html">QRect</a>&nbsp;&amp;&nbsp;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
92rectangle <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>
97This file is part of the <a href="index.html">Qt toolkit</a>.
98Copyright &copy; 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 &copy; 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>
Note: See TracBrowser for help on using the repository browser.