Qt 获取程序运行路径
//在需要的地方
QString path;
QDir dir;
path=dir.currentPath();
QMessageBox::warning(0,"PATH",path,QMessageBox::Yes);//查看路径
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//其他
QString strExePath = QApplication::applicationDirPath();
QString strExePath = QCoreApplication::applidcationDirPath();
QString strExePath = QDir::currentPath();
++++++++++++++++++++++++++++++++++&