Home > other > Consult! Questions about QT serial port to accept data
Consult! Questions about QT serial port to accept data
Time:09-26
Added a pair of virtual serial port on the computer COM8 and COM9, send data on the serial assistants open COM8, COM9 can accept data and displayed,
Yourself to write a serial port in QSerialport on QT assistant, open the COM9 wants to read a serial port assistant COM8 send data, but can't read it out,
Is my understanding of a serial port is there a problem? Or am I code has a problem? O great god answer!!
Code inside a serial port Settings are all right, after the open set and set have tried before the open, still no, And a trigger readyRead functions cannot turn into the trough, times of trigger readyRead functions to read data is empty,
MainWindow: : MainWindow (QWidget * parent) : QMainWindow (parent) , the UI (new UI: : MainWindow) { The UI - & gt; SetupUi (this);