[Interest] including config file with macdeployqt

Larry Martell larry.martell at gmail.com
Fri May 13 13:52:59 CEST 2016


Yes, I know it's just a dir. I was looking for a way for the config
file to be automagically included when the bundle is made with
macdeployqt.

And as far as the location goes, I was wondering if there is some
standard place like ~/Library/... or something where the config file
should live.

On Fri, May 13, 2016 at 7:46 AM, Gian Maxera <gmaxera at gmail.com> wrote:.
> Mac bundle (after all) is just a directory.
> So, you can just copy the config file where you want inside the directory and access it getting the path relative to application dir path (QCoreApplication::applicationDirPath()).
>
>
>> On 13 May 2016, at 12:42, Larry Martell <larry.martell at gmail.com> wrote:
>>
>> I am creating a bundle with macdeployqt to distribute my app. I want
>> to have a config file that my app will read at startup. How can I
>> include that config file in my bundle, and where is the proper place
>> for it to live on the file system on the machine the app gets
>> installed on?
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list