The QSetting constructor you are calling is using the file name as is, which means it looks for it in the current directory, which is more likely the directory you launched the application from, not necessarily the one where the application executable is. To get the latter you can use:
@QSettings mySettings(QApplication::applicationDirPath() + "/myfile.ini", QSettings::IniFormat);@
You would have to prefix explicitly the file path with QDesktopServices::storageLocation(QDesktopServices::DataLocation) (+ "/") instead to look for the file in ~/.config/organizationName/applicationName