Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
I need to return the number of groups in a ini file.
Example:
[1] a=apple b=banana c=cat [2] d=dog e=elepant c=cat
The return that I need is 2 because I have 2 groups. How can I do This?
Thanks in Advance
Is it a settings file for your application? Then i would suggest something like this: @QSettings settings; QStringList groups = settings.childGroups(); return groups.count();@
Thank you Jan-Willem this works :)
You're welcome. Glad I could help.