This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
A widget must accept this event in order to receive the
drag move events that are sent while the drag and drop action is in progress. The drag enter event is always immediately followed by a drag move event.
- class PySide6.QtGui.QDragEnterEvent(arg__1)#
PySide6.QtGui.QDragEnterEvent(pos, actions, data, buttons, modifiers)
QDragEnterEvent that represents a drag entering a widget at the given
point with mouse and keyboard states specified by
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.
- Return type: