coffeemorphism
1st February 2007, 10:11
hi, all~
I have a question about using QextSerialPort.
When I searched articles about this library, I found that in order to check whether a new data comes or not, we should poll the serial port by using QTimer.
However, when I saw the header file which describes the definition of the QextSerialPort class, I got to know that it is inherited by QIODevice class. Moreover, QIODevice emits signals like readyRead(), or bytesWritten(). Then, by writing slot function about those signals, is it possible to get data from a serial port from the slot function? not by polling repeatedly by using QTimer??
any hints or help will be appreciated~ :)
I have a question about using QextSerialPort.
When I searched articles about this library, I found that in order to check whether a new data comes or not, we should poll the serial port by using QTimer.
However, when I saw the header file which describes the definition of the QextSerialPort class, I got to know that it is inherited by QIODevice class. Moreover, QIODevice emits signals like readyRead(), or bytesWritten(). Then, by writing slot function about those signals, is it possible to get data from a serial port from the slot function? not by polling repeatedly by using QTimer??
any hints or help will be appreciated~ :)