QT如何只获取AppData\Roaming的路径,不带项目名称
QFileInfo(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation).first()).absolutePath(); 截取出来就行
你使用qdir 来获取当前路径,QDir::currentpath();