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.
QSettings settings;
settings.beginReadArray("Profile Name"); //First you have to write the strings
QStringList keys = settings.allKeys(); //then you can obtain them
for(int i = 0; i < keys.size(); i++)
{
QString key = keys.at(i);
QVariant value = settings.value(key, QVariant::Invalid);
...
}
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
Bookmarks