Probably the title question is not very explicit. I am using Qt5 on Windows7.
In a thread (QThread) at some point, in the \"process()\" function/method, I m
You can use a local event loop to wait for the signal to be emitted :
QTimer timer;
timer.setSingleShot(true);
QEventLoop loop;
connect( sslSocket, &QSslSocket::encrypted, &loop, &QEventLoop::quit );
connect( &timer, &QTimer::timeout, &loop, &QEventLoop::quit );
timer.start(msTimeout);
loop.exec();
if(timer.isActive())
qDebug("encrypted");
else
qDebug("timeout");
Here it waits until encrypted is emitted or the the timeout reaches.