Problem in accessing .ini file through QSetting in Mac?

In Mac- When i am trying to access .ini file by providing relative path i am not able to access the file but when i am providing full path i am able to access the file.
In Windows - the same code is working in both the above way.
I am not able to find what is the problem in accessing .ini file in Mac in case of relative path.