Question

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?

Was it helpful?

Solution

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)?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top