Unsolved Remove non empty directory with QFileSystemModel.
-
Hello
I have a trouble with deleting the directory using rmdir of QFileSystemModel object.
It only removes empty directories. but returns false if the directory is not empty.
Do you have any Idea? -
hi
maybe you can use
http://doc.qt.io/qt-5/qdir.html#removeRecursively -
@mrjj
I am using qt-4.8 :) I don't have this method there. -
@tokafr
Oh. That would have been too easy then :)http://stackoverflow.com/questions/11050977/removing-a-non-empty-folder-in-qt
has a function that looks good.
bool removeDir(const QString & dirName)
make sure to give it full path.I dont think QFileSystemModel can do it directly .
Not that i have seen.