QDragEnterEventclass provides an event which is sent to a widget when a drag and drop action enters it. 更多 …
A widget must accept this event in order to receive the
drag move eventsthat are sent while the drag and drop action is in progress. The drag enter event is always immediately followed by a drag move event.
QDragEnterEventinherits most of its functionality fromQDragMoveEvent, which in turn inherits most of its functionality fromQDropEvent.
QDragEnterEvent
(
pos
,
actions
,
data
,
buttons
,
modifiers
)
¶
- param modifiers
KeyboardModifiers- param actions
DropActions- param buttons
MouseButtons- param pos
QPoint- param data
QMimeData
构造
QDragEnterEvent
that represents a drag entering a widget at the given
point
with mouse and keyboard states specified by
buttons
and
modifiers
.
The drag data is passed as MIME-encoded information in
data
, and the specified
actions
describe the possible types of drag and drop operation that can be performed.
警告
Do not create a
QDragEnterEvent
yourself since these objects rely on Qt’s internal state.