[Qt-interest] Qextserial readReady() signal

Phil phillor at telstra.com
Sat Dec 5 09:08:29 CET 2009


Thank you for reading this.

I've created a simple clock application that should read the time from a GPS 
receiver every two seconds. What I need is a signal from the serial port that 
lets the program know when the next sentence is available.

The following seems correct but ready() is never called:

port = new QextSerialPort("/dev/ttyUSB0");
initSerial();
connect(port, SIGNAL(readyRead()), this, SLOT(ready()));

How should I implement the readyRead() signal?

-- 
Regards,
Phil



More information about the Qt-interest-old mailing list