Qt返回绝对路径 QString QDir::absolutePath() const QString canonicalPath() const;需要实例化QDir使用。如D:/qt_coding/build