F
F
frontjss2019-10-22 23:59:47
Python
frontjss, 2019-10-22 23:59:47

How to catch drag and drop event in pyqt5?

Let's say we can catch the click of the clicked.connect button, but how to catch the drag and drop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2019-10-23
@bbkmzzzz

Set handlers for two events:
dragEnterEvent - sent to the widget when a captured element is
hovered over dropEvent - sent to the widget when the dragged element is "dropped" onto the widget

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question