qt - Drag and drop from a QListWidget to a QLineEdit -


i have qlistwidget rows of simple text. want set user can drag , drop data qlineedit objects.

i have turned on drag , drop both types doesn't allow me drag , drop qlistwidget qlineedit. however, allow me drag 1 qlineedit qlineedit.

i didn't re-implement methods far. did turn on drag , drop features in edit view.

how enable drag , drop qlistwidget qlineedit? methods need re-implement?

thanks,

since trying dnd different types drag differen mime data. therefor qlineedit not know how handle data being dropped. subclass widget , implement dropevent() , need dragenterevent() dragleaveevent() , dragmoveevent().


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -