⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdragmoveevent.3qt

📁 Trolltech公司发布的基于C++图形开发环境
💻 3QT
字号:
'\" t.TH QDragMoveEvent 3qt "24 January 2005" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQDragMoveEvent \- Event sent as a drag-and-drop is in progress.br.PP\fC#include <qevent.h>\fR.PPInherits QDropEvent..PPInherited by QDragEnterEvent..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQDragMoveEvent\fR ( const QPoint & " "pos" ", Type " "typ" "=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 DESCRIPTIONEvent sent as a drag-and-drop is in progress..PPWhen a widget accepts drop events, it will receive this event repeatedly while the the drag is inside that widget. The widget should examine the event, especially seeing what data it provides, and accept() the drop if appropriate..PPNote that this class inherits most of its functionality from QDropEvent..PPExamples:.(ldesktop/desktop.cpp.)l.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 given event \fItype.\fR.PPNote that internal state is also involved with QDragMoveEvent, so it is not useful to create these yourself..SH "void QDragMoveEvent::accept ( bool y=TRUE )"Reimplemented for internal reasons; the API is not affected..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..PPIf the rectangle is empty, then drag move events will be sent continuously. This is useful if the source is scrolling in a timer event..SH "QRect QDragMoveEvent::answerRect () const"Returns the rectangle for which the acceptance of the move event applies..SH "void QDragMoveEvent::ignore ()"Reimplemented for internal reasons; the API is not affected..SH "void QDragMoveEvent::ignore ( const QRect & r )"The opposite of accept(const QRect&)..SH "SEE ALSO".BR http://doc.trolltech.com/qdragmoveevent.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qdragmoveevent.3qt) and the Qtversion (2.3.10).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -