Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は設定を持っています:
[Users] joe bill dona serg
QStringListすべてのユーザー名が必要です。
QStringList
QSettings ini("/tmp/users.ini", QSettings::NativeFormat); ini.beginGroup("Users"); QStringList keys = ini.allKeys(); qDebug() << keys; ini.endGroup();
これは機能しません:(
構成を次のように変更します
[Users] joe=1 bill=1 dona=1 serg=1
そして、それは今動作します。