/**獲取系統桌面路徑
* @time: 2019-7-5
* @author: qiangu
* @return: desktopPath
*/
QString FileDirectory::getDesktopPath(){
QString desktopPath = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
qDebug()<< "desktopPath:" << desktopPath;
return desktopPath;
}
/**獲取的執行文件exe所在的路徑
* @time: 2019-7-5
* @author: qiangu
* @return: applicationDirPath
*/
QString FileDirectory::getApplicationDirPath(){
// QString QApplication::applicationDirPath()
QString applicationDirPath = QApplication::applicationDirPath();
qDebug()<< "applicationDirPath:" << applicationDirPath;
return applicationDirPath;
}
//相對路徑,常用於資源文件。在QtCreater中的“./”這個路徑是bulid directory的路徑