ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

获取路径

获取路径

QCoreApplication::applicationDirPath():

  • 返回应用程序可执行文件所在的目录路径。
  • 适用于所有继承自 QCoreApplication 的应用程序,包括 QApplication 和 QCoreApplication

 

    //获取可执行文件所在的目录路径QString CurrentPath = QCoreApplication::instance()->applicationDirPath();

 

返回列表