fsu0413:[code]serial = new QSerialPort();
connect(timer, SIGNAL(timeout()), this, SLOT(custom_timeout()));
connect(serial, SIGNAL(errorOccurred(QSerialPort::SerialPortError)), this,
SLOT(custom_error(QSerialPort::SerialPortError)));
timer->start(1);
.......