Open
Description
https://doc.qt.io/qtforpython-6/overviews/dnd.html#drag-and-drop
I think the best way to support this would be to add an on_drop
prop to the View
.
pyedifice/edifice/base_components.py
Line 1463 in 943bf85
def __init__(self, layout: tp.Text = "column", on_drop: tp.Optional[tp.Callable[[QDropEvent], tp.Any]], **kwargs):
Then we can put a View
around any region which we want to be droppable.
Maybe we also need the other events, QDragEnterEvent
, QDragMoveEvent
, QDragLeaveEvent
.
Metadata
Metadata
Assignees
Labels
No labels