Just a quick additional note on my last post - if you don't want to make your class asynchronous, too, you can wait for the signal right in your constructor, with something like this:
@forever
{
if (/* Check for reply here /)
{
/ Do reading here */
}
else
{
// This ensures that your application will respond to events while waiting for the reply
qApp->processEvents();
}
}
@
Although doing it in the constructor might be dangerous. Also, it will wait for an answer indefinitely... be careful :)