PySide6.QtGui.QDragEnterEvent¶
- class QDragEnterEvent¶
- The - QDragEnterEventclass provides an event which is sent to a widget when a drag and drop action enters it. More…- Synopsis¶- Methods¶- def - __init__()
- def - __repr__()
 - Note - 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 - Detailed Description¶- 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 from- QDragMoveEvent, which in turn inherits most of its functionality from- QDropEvent.- See also - __init__(arg__1)¶
- Parameters:
- arg__1 – - QDragEnterEvent
 
 - __init__(pos, actions, data, buttons, modifiers)
- Parameters:
- pos – - QPoint
- actions – Combination of - DropAction
- data – - QMimeData
- buttons – Combination of - MouseButton
- modifiers – Combination of - KeyboardModifier
 
 
 - Constructs a - QDragEnterEventthat represents a drag entering a widget at the given- pointwith mouse and keyboard states specified by- buttonsand- modifiers.- The drag data is passed as MIME-encoded information in - data, and the specified- actionsdescribe the possible types of drag and drop operation that can be performed.- Warning - Do not create a - QDragEnterEventyourself since these objects rely on Qt’s internal state.- __repr__()¶
- Return type:
- str