You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.2 KiB
84 lines
3.2 KiB
'\" t
|
|
.TH QDragMoveEvent 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
|
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
|
.\" license file included in the distribution for a complete license
|
|
.\" statement.
|
|
.\"
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
QDragMoveEvent \- Event which is sent while a drag and drop is in progress
|
|
.SH SYNOPSIS
|
|
\fC#include <ntqevent.h>\fR
|
|
.PP
|
|
Inherits QDropEvent.
|
|
.PP
|
|
Inherited by QDragEnterEvent.
|
|
.PP
|
|
.SS "Public Members"
|
|
.in +1c
|
|
.ti -1c
|
|
.BI "\fBQDragMoveEvent\fR ( const QPoint & pos, Type type = DragMove )"
|
|
.br
|
|
.ti -1c
|
|
.BI "QRect \fBanswerRect\fR () const"
|
|
.br
|
|
.ti -1c
|
|
.BI "void \fBaccept\fR ( const QRect & r )"
|
|
.br
|
|
.ti -1c
|
|
.BI "void \fBignore\fR ( const QRect & r )"
|
|
.br
|
|
.in -1c
|
|
.SH DESCRIPTION
|
|
The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
|
|
.PP
|
|
When a widget accepts drop events, it will receive this event repeatedly while the drag is within the widget's boundaries. The widget should examine the event to see what data it provides, and accept() the drop if appropriate.
|
|
.PP
|
|
Note that this class inherits most of its functionality from QDropEvent.
|
|
.PP
|
|
See also Drag And Drop Classes and Event Classes.
|
|
.SH MEMBER FUNCTION DOCUMENTATION
|
|
.SH "QDragMoveEvent::QDragMoveEvent ( const QPoint & pos, Type type = DragMove )"
|
|
Creates a QDragMoveEvent for which the mouse is at point \fIpos\fR, and the event is of type \fItype\fR.
|
|
.PP
|
|
\fBWarning:\fR Do not create a QDragMoveEvent yourself since these objects rely on Qt's internal state.
|
|
.SH "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 \fIr\fR on the widget: this can improve performance, but may also be ignored by the underlying system.
|
|
.PP
|
|
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.
|
|
.PP
|
|
Examples:
|
|
.)l desktop/desktop.cpp and dirview/dirview.cpp.
|
|
.SH "QRect QDragMoveEvent::answerRect () const"
|
|
Returns the rectangle for which the acceptance of the move event applies.
|
|
.SH "void QDragMoveEvent::ignore ( const QRect & r )"
|
|
The opposite of accept(const QRect&), i.e. says that moves within rectangle \fIr\fR are not acceptable (will be ignored).
|
|
.PP
|
|
Example: dirview/dirview.cpp.
|
|
|
|
.SH "SEE ALSO"
|
|
.BR http://doc.trolltech.com/qdragmoveevent.html
|
|
.BR http://www.trolltech.com/faq/tech.html
|
|
.SH COPYRIGHT
|
|
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
|
license file included in the distribution for a complete license
|
|
statement.
|
|
.SH AUTHOR
|
|
Generated automatically from the source code.
|
|
.SH BUGS
|
|
If you find a bug in Qt, please report it as described in
|
|
.BR http://doc.trolltech.com/bughowto.html .
|
|
Good bug reports help us to help you. Thank you.
|
|
.P
|
|
The definitive TQt documentation is provided in HTML format; it is
|
|
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
|
|
a web browser. This man page is provided as a convenience for those
|
|
users who prefer man pages, although this format is not officially
|
|
supported by Trolltech.
|
|
.P
|
|
If you find errors in this manual page, please report them to
|
|
.BR qt-bugs@trolltech.com .
|
|
Please include the name of the manual page (tqdragmoveevent.3qt) and the Qt
|
|
version (3.3.8).
|