// 1. 获取当前程序的目录
QString exeDir = QCoreApplication::applicationDirPath(); // 获取可执行文件目录
// 2. 指定目标目录的绝对路径
QString targetDirPath = QFileInfo(schemefile).absolutePath()+"/" ; // 目标目录
// 3. 计算相对路径
QDir exeDirectory(exeDir); // 创建一个 QDir 对象
// 获取相对路径
QString relativePath = exeDirectory.relativeFilePath(targetDirPath) +"/";
06-05
319
12-27
572
08-17
2314
08-06
2478
04-12
5063