Variable that refers to the project directory in Qt Creator?

后端 未结 4 1687
生来不讨喜
生来不讨喜 2021-02-07 22:16

I\'m working on a cross-platform Qt application and the paths are different on Mac OS X and Windows. Since the project is on an external hard-drive, the drive letter also occasi

4条回答
  •  佛祖请我去吃肉
    2021-02-07 22:35

    There are problems with $$_PRO_FILE_PWD_ on windows, because it contains forward slash allways. You need to fix slash using shell_path.

     $$shell_path($$_PRO_FILE_PWD_)
    

提交回复
热议问题