Reputation: 1120
I am currently linux API like sigio
,sigaction
, etc. to interface with serial ports in Linux. And for a GUI I am using Qt 4.2. I know about 3rd party QextSerial but I would stay away from it. I also was tinkering with QSocketNotifier as an alternative.
Can someone give a rough example to read/write from a serial port using QSockeNotifier?
Upvotes: 1
Views: 1519
Reputation: 15541
Here are the docs for the class. And here is an example for using QSocketNotifier with serial ports.
Also there was another question which might help you, it is written in Python, but pretty clear:
How do I watch a serial port with QSocketNotifier (linux)?
Upvotes: 1