QFileInfo : set relative path for a file in current directory.
Solved
General and Desktop
-
QFileInfo qfi(filename);
should work.
Are you sure current directory is the one you assume it should be?
Check it with http://doc.qt.io/qt-5.7/qdir.html#currentPath