rocknroll
rocknroll

Reputation: 1120

Has someone used QSockeNotifier (Qt library) to read/write serial ports in Linux?

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

Answers (1)

George
George

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

Related Questions