View Full Version : path ressources
shenakan
28th October 2009, 13:54
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
mcosta
28th October 2009, 16:46
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.