Quote Originally Posted by ^NyAw^ View Post
Hi,



You are getting the strings from "settings" variable and it has any string yet. Then you insert "Profile Name" to settings and you think that "keys" will auto update the readed value.

Qt Code:
  1. QSettings settings;
  2. settings.beginReadArray("Profile Name"); //First you have to write the strings
  3. QStringList keys = settings.allKeys(); //then you can obtain them
  4.  
  5. for(int i = 0; i < keys.size(); i++)
  6. {
  7. QString key = keys.at(i);
  8. QVariant value = settings.value(key, QVariant::Invalid);
  9. ...
  10. }
To copy to clipboard, switch view to plain text mode 
Yea, but the values are already in the registry
value() always returns the default value, which is in my case QVariant::Invalid

Damnit, why is this so damn hard?


- Eeli Reilin