LIBS += -L"путь к qextserialport" -lqextserialportINCLUDEPATH = "путь к qextserialport"/include
/*QReceiveThread*/void ReceiveThread::run(){ int count; forever { msleep(1); mutex.lock(); count = comport->bytesAvailable(); mutex.unlock(); if (0 < count) { emit newDataInPortThread(count); QTime timedb; qDebug()<<"thread count= "<<count<<"time= "<<"\t"<<timedb.currentTime().second()<<" "<<timedb.currentTime().msec(); } }}