I have a INI txt file that I want to use with my Qt app. After some googling, I found that QSettings is probably my best bet; I want to use QSettings to read my INI file.
I then went to QSettings reference page, and read on how to use the class. One thing that I couldnt find was the format that QSettings expects when it reads an INI file.
Am I using the right class? or QSettings was not meant to be used as just a reader. i.e. when creating an INI file, you need to use QSettings class to create that INI file as well.
Also, here's the format of my ini file
#
# Configuration file
#
[App]
QueueSize = 10
MaxNrgph = 16384
MaxChNum = 40
[Processor]
ThresholdChNum = 2
Range1 = 10.0
Range2 = 20.0
[Output]
PortNumber = 9000
#
# Configuration file
#
[App]
QueueSize = 10
MaxNrgph = 16384
MaxChNum = 40
[Processor]
ThresholdChNum = 2
Range1 = 10.0
Range2 = 20.0
[Output]
PortNumber = 9000
To copy to clipboard, switch view to plain text mode
Bookmarks