PDA

View Full Version : move folders in QDirModel



janus
24th January 2009, 11:15
Hi,

I have a QDirModel and a QTreeView. I have enabled drag/drop actions and the model is not readOnly. I can move the files around (internal move - drag/drop) but I can not drop the folders (allthough I can drag the folders and I even get a positiv dropindicator). Does anyone know why? Do I have to subclass QDirModel?

wysota
24th January 2009, 13:16
You have to look into our wiki and use search more extensively :)

janus
24th January 2009, 13:34
Hi,

I searched web and forum and could not find anything ... :o Do you mean the "Extended Dir View example" in the Wiki? But how to drag/drop folders within the treeview is not covered there afair. Please, give me a hint :-)

wysota
24th January 2009, 18:06
I think it is covered there, only that it is described using a listview, but it's exactly the same with a treeview. If dropping folders doesn't work, you should check permissions and also try dropping in Move mode and not Copy mode.

janus
24th January 2009, 18:38
Hi,

I built the example in the wiki but i cant move (drag yes but no drop) folders there as well. In my code I use as dragDropMode InternalMove and on Windows I have all permissions ... any idea?