PDA

View Full Version : Get the application path



StrikeByte
27th January 2015, 09:14
I'm using Qt5.3 on windows and I want to get the application path.
Normally I always used qApp-> applicationDirPath(), but now I noticed that when I start the application from a shortcut that has it's "start in" directory set to something else than the application path, qApp-> applicationDirPath() returns the "start in" directory and not the real application path

Is there a way to always get the applications path and not the "start in" path?

Thx in advance

Nevermind I didn't add the file path to the affected files (realy need to learn how to read)