Is there a cross-platform function in Qt that is equivalent to the MoveFile function in Windows and the mv command in Linux?
See Question&Answers more detail:osIs there a cross-platform function in Qt that is equivalent to the MoveFile function in Windows and the mv command in Linux?
See Question&Answers more detail:osSure, QDir::rename()
following the old Unix / POSIX tradition of calling this rename.
Which makes sense if you think of a file with its complete path: the underlying inodes just get assigned a different path/file label.