QString QDir::currentPath()与QString QCoreApplication::applicationDirPath()

QString QCoreApplication::applicationDirPath()
Returns the directory that contains the application executable.
返回包含应用程序可执行文件的目录。
QString QDir::currentPath()
Returns the absolute path of the application’s current directory. The current directory is the last directory set with QDir::setCurrent() or, if that was never called, the directory at which this application was started at by the parent process.
返回应用程序当前目录的绝对路径。 当前目录是使用QDir::setCurrent()设置的最后一个目录,如果从未调用过,则该目录是父进程启动该应用程序的目录。

你可能感兴趣的:(Qt5.11)