ok, i have ini file like:
[user]
0/name=lukasz
0/wins=3
0/loses=3
1/name=pawel
1/wins=1
1/loses=5
2/name=anna
2/wins=1
2/loses=5

and my code is:
Qt Code:
  1. settings = new QSettings("config.ini",QSettings::IniFormat);
  2. settings->beginGroup("user");
  3. QStringList player_number = settings->childGroups(); // returns 0, 1, 2 - OK !
  4. const QStringList childKeys = settings->childKeys(); // should return name, wins, ... right ?
  5. foreach(const QString &childKey, childKeys)
  6. {
  7. ui->choosePlayerBox->addItem(settings->value(childKey).toString()); // should add lukasz, 3, 3, pawel...., but it doesn`t work
  8.  
  9. }
  10. settings->endGroup();
To copy to clipboard, switch view to plain text mode 

Any ideas ?