How to move a file to another existing directory in Qt
问题 I am a beginner in Qt, one part of my project is moving a existing file to another existing directory? Can someone gives me a specific example? I am not sure whether I should use Qfile::rename(). I try write like this QDir::rename("/home/joshua/test.txt","/home/joshua/test/test_c.txt"); but the error is cannot call member function 'bool QDir::rename(const QString&, const QString&)' without object QDir::rename("/home/joshua/test.txt","/home/joshua/test/test_c.txt"); ^ Sorry guys, all are my