Try using QDir..check the documentation. There is a function (actually a few) that can provide you with useful information like:
QDir QString Return Value
current() currentPath() The application's working directory
home() homePath() The user's home directory
root() rootPath() The root directory
temp() tempPath() The system's temporary directory
hope it helps
Bookmarks