How to delete a folder and all its contents with Qt
?
I tried using:
QFile::remove();
but it seems like it deletes only one file a time.
How to delete a folder and all its contents with Qt
?
I tried using:
QFile::remove();
but it seems like it deletes only one file a time.
For
Qt5
there isQDir::removeRecursively
:For
Qt4
or lower you can use a recursive function that deletes every file:as stated here.