unix:DEFINES = _TTY_POSIX_
unix:DEFINES = _TTY_POSIX_win32:DEFINES = _TTY_WIN_
#include <qextserialport.h>.....QextSerialPort *port = new QextSerialPort("/dev/ttyS0");port->setBaudRate(BAUD19200); port->setFlowControl(FLOW_OFF);port->setParity(PAR_NONE); port->setDataBits(DATA_8); port->setStopBits(STOP_2); .....