The documentation for QDir::makeAbsolute()
says
Converts the directory path to an absolute path. If it is already absolute nothing happens. Returns
true
if the conversion succeeded; otherwise returnsfalse
.
It's not clear to me how the creation of an absolute path from a relative path could fail.
Of course there's no guarantee that a directory will actually exist at that absolute path, but for the most part the QDir
API doesn't concern itself with whether the directory exists or not, so I'd be surprised if that was what it was doing here.