My sis package contains a file, called setting.ini
the sis package of the application can be installed to C or E, or other drives.
How to runtime load/read the setting.ini file in the code?
Note: I do not want to put it in the resource file.
My sis package contains a file, called setting.ini
the sis package of the application can be installed to C or E, or other drives.
How to runtime load/read the setting.ini file in the code?
Note: I do not want to put it in the resource file.
Simplest thing to do is to just refer to the file without using any drive or directory. Unless you've previously changed the current directory setting, it will default to the application's home directory.
I **think** that QDir::homePath will return the path to this location, but I'm not 100% sure on that.
I decided to use the application private path, and this would be simple. thanks.