I need to load some setup files when I start my application. I would to know which PATH OPTION I should use to be compatible with mac, linux and windows to be sure to find the files.
Thanks
I need to load some setup files when I start my application. I would to know which PATH OPTION I should use to be compatible with mac, linux and windows to be sure to find the files.
Thanks
You can use QCoreApplication::applicationDirPath.
It returns the path that contains the executable.
If you needs some "absolute" path independent from the executable, you can use QDir methods as homePath(), rootPath() and so on
A camel can go 14 days without drink,
I can't!!!
shenakan (6th November 2009)
Bookmarks