Ok, jpn and all other kind experts, I am back to this section of my project. I've setup an INI file and it is created upon constructor call like it should. Now, I do not know how to extract all key names for a key. For example, this is example ini file:
[GeometrySettings]
x1=100
x2=100
y1=200
y2=200
background=blue
[GeometrySettings]
x1=100
x2=100
y1=200
y2=200
background=blue
To copy to clipboard, switch view to plain text mode
Now, I have been reading QSettings docs for a while, but I simply do not know how to extract strings x1, x2, y1, y2 (keys) from GeometrySettings hub. For example, I need a call that will for example call:
QStringList strKeys=QSettings::keys(QString("GeometrySettings"));
To copy to clipboard, switch view to plain text mode
return strings "x1', "x2", "y1", "y2" string in string list. I cannot find that function. So, does anyone has idea how to implement it. The problem is that I write uniform QSettings subclassed class that will be used by all applications in my software project and this class does not know how many and which keys are under some settings hub. Please help!
Bookmarks