QSettings not connecting to .ini file
I have a .ini file states.ini which I am trying to connect to QSettings. To test it out, in my .ini file I have
In my Qt c++, I have
- QString someValue = settings.value("myConnection/ip", "none").toString();
- qDebug() << someValue;
However, this returns “none.” Any ideas as to why it doesn’t correctly find the ip address in the .ini file?