[Solved] Get Current Working Directory in Qt 4.8?
General and Desktop
3
Posts
2
Posters
1.7k
Views
1
Watching
-
wrote on 24 Jun 2013, 15:55 last edited by
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? -
wrote on 24 Jun 2013, 16:04 last edited by
Checkout "QDir::current()":http://qt-project.org/doc/qt-4.8/qdir.html#current
-
wrote on 24 Jun 2013, 16:10 last edited by
Thanks a lot!
Saved a lot of hard work & headache.
1/3