Description
QFileInfo::path() returns absolute path instead of relative path. which is inconsistent with older behavior on windows.
Following code can be used to see the behavior. The first out put is inconsistent with other two it return absolute path where as other prints relative path.
QFileInfo info1(QLatin1String("C:"));
qDebug()<<info1.path();
QFileInfo info2(QLatin1String("dir/file"));
qDebug()<<info2.path();
QFileInfo info3(QLatin1String("file"));
qDebug()<<info3.path();
Output :
"C:\the\current\path"
"dir"
"."
following change id introduced this in Qt 4.8.3
Change-Id: I47a197c6af066f532442ad269be57597ec61303a