PDA

View Full Version : Dragging files from desktop



Pobierac
20th June 2019, 02:52
Hello, Im starting with qt and I have no idea how to handle this:

I want to enable user to drag files from desktop, folders, etc. into my program, then create folder and drop all of those files there.

Ginsengelf
20th June 2019, 08:06
Hi, you can overload QWidget::dropEvent() to catch those files, and then get the names using QDropEvent::mimeData()->urls().

Ginsengelf