Open GoogleCodeExporter opened 9 years ago
Hi,
I made a class called qextserialporthelper which helps to resolve this problem.
I attach it.
With this class I can read settings from ini like this:
ser->setDataBits(serHelp.dataBitsMap[s.value("SERIAL/DATABITS").toString()]);
s is a QSetting object
The ini file looks like:
[SERIAL]
ENABLED=0
PORTNAME=COM3
BAUDRATE=38400
DATABITS=8
#DATABITS: 5, 6, 7, 8
PARITY=NONE
#PARITY: NONE, ODD, EVEN, MARK, SPACE
STOPBITS=1
#STOPBITS: 1, 1.5, 2
FLOW=OFF
#FLOW: OFF, HARDWARE, XONXOFF
TERM=\r
Original comment by gosztola...@gmail.com
on 12 Mar 2012 at 9:42
Attachments:
Thanks a lot! Will try to use it today....
Original comment by sarang.t...@gmail.com
on 12 Mar 2012 at 1:04
Yup, it works like a charm, thanks again!
Original comment by sarang.t...@gmail.com
on 13 Mar 2012 at 4:32
Fixed in Version 2.0
Original comment by dbzhang...@gmail.com
on 19 Apr 2012 at 2:52
Original comment by dbzhang...@gmail.com
on 13 Dec 2012 at 6:21
Original issue reported on code.google.com by
sarang.t...@gmail.com
on 10 Mar 2012 at 3:07