drag and drop in QListWidget
General and Desktop
6
Posts
2
Posters
2.1k
Views
2
Watching
-
wrote on 19 Oct 2015, 09:24 last edited by
anyone has an idea on how can i support drag & drap on my qt qlistwidget?
-
Hi,
Have a look at this chapter of Qt's documentation about D'nD and item views.
-
wrote on 19 Oct 2015, 10:36 last edited by
Im going to write a music player, the user can drag their songs from their desktop to my app, ill check it thanks
-
Do you mean drag the files over on your app ?
-
wrote on 21 Oct 2015, 12:37 last edited by
sorry for the super late reply , i was busy in my other class projects sorry.
yea thats what i mean, it looks like you thought of dragging so i can arrange the items in QListWidget -
The logic is the same, you have to handle the mime type used by Window's explorer when you drag the file on the widget.
6/6