Drag and drop signal for a button
Hi i have two QVBoxLayouts next to each other which are displaying files in two different locations (each file is a separate button).
i would like to be able to move a file from one directory to another when the user clicks and drags on the button and releases it over the other QVBoxLayout ( a similar process to drag / drop in windows ).
Just to know, why don't you use QFileSystemModel with a view (QListView for example) ?
That would make the filesystem operations and the drag and drop easier to implement.
the controls needed to be custom built because of a few specific functions.
(i need full control over what folders the users is allowed to browse too )
Are you sure that it would not be easier to implement some sort of filter over the QFileSystemModel ? Or make your own model ?
In between, the "Drag and Drop":http://qt-project.org/doc/qt-5.0/qtgui/dnd.html documentation is what you need to get started