linux - Letting users drop the file(s) to what location they want from the listview on Qt -


I want to create a function for users to drag and drop files between those places and the list view on current QT place.

Enter image details here

How to do this function Implement?

Thank you for your help.

Do you Google? If you are, you will get the result:

For your code, this may be something like this:

  Your Video Zero: Drag Object (Constraints and Text) Zero {QDrag * drag = new QDrag (this); // Note that this should be an example of QWidget QMimeData * mime = new QMimeData (); Mime-> SetText (text); Drag-& gt; SetMimeData (mime); // ... Qt :: DropAction drop action = drag-> Exec (); }  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -