可以通过以下方式来获取:

1、

#include <QDir>
#include <QDebug>

QDir dir;
qDebug() << "currentPath : "+dir.currentPath();

 

2、

QApplication::applicationFilePath();

QCoreApplication::applicationDirPath();

 

3、

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-11-14
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案