How to find the installation directory of a Qt application?

后端 未结 1 1242
故里飘歌
故里飘歌 2020-12-10 14:14

I have a Qt based application that works for both Mac and Windows. When the user installs the software it also installs a folder containing a bunch of HTML documentation pa

1条回答
  •  清歌不尽
    2020-12-10 14:43

    You should use:

    QString QCoreApplication::applicationDirPath() [static]
    

    0 讨论(0)
提交回复
热议问题