"./" means current directory and it seems that the current directory differs from what you expect it to be. See QCoreApplication::applicationDirPath().