QFileInfo : set relative path for a file in current directory.
How can I set relative path of a file in current directory to QFileInfo?
I tried like
But it did not 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
Thank you. You are right. I misunderstand the currentPath. Because I did not set it manually, currentPath was the path where my executable exists.