Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.9.3
-
None
Description
//get C:\Users\Administrator\AppData\Local\xxxx
QString strAppConfigDirPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
#ifdef Q_OS_WIN
// When processing QT to get standard paths, if the name is xxx. xxx. exe, the suffix of. xxx. exe will be removed instead of. exe. Now we need to reorganize the paths.
strAppConfigDirPath = strAppConfigDirPath.mid(0,strAppConfigDirPath.lastIndexOf('/') + 1);
QString strAppName = qApp->applicationFilePath();
QFileInfo fileinfo(strAppName);
strAppName = fileinfo.fileName();
strAppName = strAppName.mid(0,strAppName.lastIndexOf("."));