views:

875

answers:

1

Hi all,

I am currently linux API like sigio,sigaction etc to interface with serial ports in Linux. And for 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 r/w from serial port using QSockeNotifier.

Regards

+1  A: 

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

Richard J. Terrell