Hello friends,
I am trying to swap two file names using QDir::rename. I have 2 files 100.jpg and 101.jpg. But it fails as the new filename exists and rename fails if new filename already exists. I tried the old engineering method, a,b,c the three variables. Then c=a, a=b, b=c. But this also fails with rename. Kindly let me know what to do. Thank you for your time.
Bookmarks