天天看点

Qt: 获取程序当前运行目录

Qt程序,读取当前目录下的某个文件。

QString currPath = QCoreApplication::applicationDirPath() + "/config.json";