[Solved] Get Current Working Directory in Qt 4.8?
-
Hi,
I want to have the path of current working directory.
C++ provides functionality for the same, but it is platform & compiler dependent. See "here":http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from.
So I want to know whether Qt has a simple function which gives me the ABSOLUTE PATH of CWD? -
Checkout "QDir::current()":http://qt-project.org/doc/qt-4.8/qdir.html#current
-
Thanks a lot!
Saved a lot of hard work & headache.