path: root/src
diff options
authorThiago Macieira <>2013-10-30 10:17:18 -0700
committerThe Qt Project <>2013-11-06 08:35:29 +0100
commit6adfca1acbe226fe49bdd90c91ac6ea74d4d6af9 (patch)
tree73b869d14eebccba1de58edb7cdaac29c597ab77 /src
parent49a3c87175b0b9261c8c715315f3913b410f248d (diff)
Doc: Add a little more information about current dirs
Task-number: QTBUG-34300 Change-Id: Ib71d6ace77b525942ca40645299cdfd87b753d70 Reviewed-by: Morten Johan Sørvig <>
Diffstat (limited to 'src')
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp
index 0c65817557..db27bed9d6 100644
--- a/src/corelib/io/qdir.cpp
+++ b/src/corelib/io/qdir.cpp
@@ -1863,9 +1863,12 @@ bool QDir::setCurrent(const QString &path)
- Returns the absolute path of the application's current directory.
+ Returns the absolute path of the application's current directory. The
+ current directory is the last directory set with QDir::setCurrent() or, if
+ that was never called, the directory at which this application was started
+ at by the parent process.
- \sa current(), setCurrent(), homePath(), rootPath(), tempPath()
+ \sa current(), setCurrent(), homePath(), rootPath(), tempPath(), QCoreApplication::applicationDirPath()
QString QDir::currentPath()