Re: Moving File/Folder in Qt
I don't know what OS your after, but if it's windows, then you have API function MoveFileWithProgress(), which can use a callback function so you can update a GUI. If it can't actually move the file (eg. it's in use, read only, or whatever) then it'll attempt to copy the file instead.
Re: Moving File/Folder in Qt
Quote:
Originally Posted by
fatjuicymole
I don't know what OS your after, but if it's windows, then you have API function MoveFileWithProgress(), which can use a callback function so you can update a GUI. If it can't actually move the file (eg. it's in use, read only, or whatever) then it'll attempt to copy the file instead.
I use windows but i dont see a function called MoveFileWithProgress() in QT. there is one in windows MSDN API in WinBase.h, but i am not sure if i can use with MinGW for compiling.
Re: Moving File/Folder in Qt
Yes, sorry, I meant WinAPI function.
Yes, you can use WinAPI functions such as that with MinGW (Qt, after all, uses WinAPI calls for a lot of it's own work)
Re: Moving File/Folder in Qt
Thanks, Tried and worked on first try