Hi miwarre
first of all thanks for the reply abnd pointing me into the direction.
Right now i am wondering why my first attempt does not output anything - but i guess i am still having small issues in my code.
ini:
[0]
id=foo
path=bar
[1]
id=bar
path=bla
[0]
id=foo
path=bar
[1]
id=bar
path=bla
To copy to clipboard, switch view to plain text mode
Code:
qDebug() << "test";
foreach
(const QString &childKey, childKeys
)qDebug() << settings.value(childKey);
QSettings settings ("myinifile.ini", QSettings::IniFormat);
qDebug() << "test";
QStringList childKeys = settings.childKeys();
foreach (const QString &childKey, childKeys)
qDebug() << settings.value(childKey);
To copy to clipboard, switch view to plain text mode
and
qDebug() << keys;
QSettings settings ("myinifile.ini", QSettings::IniFormat);
QStringList keys = settings.childKeys();
qDebug() << keys;
To copy to clipboard, switch view to plain text mode
seems to end in an empty list too.
but all in all i guess childKeys was a good hint - so thanks again
Best regards
el
Bookmarks