Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.7.1
-
None
-
Windows 10 x64
Qt 5.7.1 x86 VS2013
Description
Empty QDir() returns user home dir while program working dir should be returned. This breakes QFileInfo behavior as well.
Code:
#include <QCoreApplication>
#include <QDir>
#include <QDebug>
int main(int argc, char *argv[])
{ QCoreApplication a(argc, argv); qDebug() << QDir().absolutePath() << a.applicationDirPath(); return 0; }