I have a requirement of sending serial commands and accept the response using qextserialport library on Qt4.

I am trying to read/ write to/from the serial port using signals and slots mechanism. There are series of commands that need to be sent in-order to initialize the setup. For all the commands i send , i need to check for an acknowledgement. So, decided to define the Qtimer for a timeout. Both the Qtimer and the Qextserialport are using the signal and slots. The serial port read/write has to be done before the Qapplication event loop. As per my understanding of Qt, I presume, Signals and slots does not work without an event loop.

Any suggestions on how to use the serial port library would be grateful.