Handles drag and drop events for a QAbstractItemView so that we don't have to implement the same code in multiple views. It is a friend class of QAbstractItemView.
More...
#include <DragAndDropHandler.h>
Handles drag and drop events for a QAbstractItemView so that we don't have to implement the same code in multiple views. It is a friend class of QAbstractItemView.
◆ DragAndDropHandler()
DragAndDropHandler::DragAndDropHandler |
( |
QAbstractItemView * |
view, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Constructs a DragAndDropHandler with the given QAbstractItemView and parent object.
- Parameters
-
view | The QAbstractItemView for which drag and drop events should be handled. |
parent | The parent QObject for this handler (optional). |
◆ handleDragEnterEvent
void DragAndDropHandler::handleDragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
slot |
Handles the drag enter event.
- Parameters
-
event | The QDragEnterEvent containing information about the drag and drop operation. |
◆ handleDragLeaveEvent
void DragAndDropHandler::handleDragLeaveEvent |
( |
QDragLeaveEvent * |
event | ) |
|
|
slot |
Handles the drag leave event.
- Parameters
-
event | The QDragLeaveEvent containing information about the drag and drop operation. |
◆ handleDragMoveEvent
void DragAndDropHandler::handleDragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
slot |
Handles the drag move event.
- Parameters
-
event | The QDragMoveEvent containing information about the drag and drop operation. |
◆ handleDropEvent
void DragAndDropHandler::handleDropEvent |
( |
QDropEvent * |
event | ) |
|
|
slot |
Handles the drop event.
- Parameters
-
event | The QDropEvent containing information about the drag and drop operation. |
The documentation for this class was generated from the following files: