Skip to content

Instantly share code, notes, and snippets.

@pablo384
Created February 8, 2020 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablo384/b824aa9262a596516edf0173e870694d to your computer and use it in GitHub Desktop.
Save pablo384/b824aa9262a596516edf0173e870694d to your computer and use it in GitHub Desktop.
QEventLoop loop;
connect(this, &SomeObject::someSignal, &loop, &QEventLoop::quit);
// here you can send your own message to signal the start of wait,
// start a thread, for example.
loop.exec(); //exec will delay execution until the signal has arrived
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment