Is there a cross-platform function in Qt that is equivalent to the MoveFile function in Windows and the mv command in Linux?
Is there a cross-platform function in Qt that is equivalent to the MoveFile function
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure,
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.