The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it. 更多...
头: | #include <QDragEnterEvent> |
qmake: | QT += gui |
继承: | QDragMoveEvent |
QDragEnterEvent (const QPoint & point , Qt::DropActions actions , const QMimeData * data , Qt::MouseButtons buttons , Qt::KeyboardModifiers modifiers ) |
The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it.
Widget 必须接受此事件为接收 拖拽移动事件 在拖放动作进行中所发送的。拖拽进入事件之后,始终立即紧跟拖拽移动事件。
QDragEnterEvent inherits most of its functionality from QDragMoveEvent ,又继承了大部分功能从 QDropEvent .
另请参阅 QDragLeaveEvent , QDragMoveEvent ,和 QDropEvent .
构造 QDragEnterEvent that represents a drag entering a widget at the given point 具有的鼠标和键盘的状态的指定通过 buttons and modifiers .
拖拽数据以 MIME (多用途 Internet 邮件扩展) 编码信息形式传递在 data ,和指定 actions 描述可以履行的拖放操作的可能类型。
警告: Do not create a QDragEnterEvent yourself since these objects rely on Qt's internal state.