PDA

View Full Version : Getting Current Directory.



afflictedd2
16th November 2008, 14:54
Hi guys,

I was wondering, how can I get the directory from where the application was launched, so that I can set it with setWorkingDirectory(QString).

Ed.

spirit
16th November 2008, 15:09
look at these functions QDir::currentDir and QCoreApplication::applicationDirPath

afflictedd2
16th November 2008, 22:27
Thank you spirit :)