did you checked what port->open(QIODevice::ReadWrite); is returning?