Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Last active June 21, 2017 22:41
Show Gist options
  • Save jniemann66/2d85018d40ca07e1dcb03e05ed2f14ed to your computer and use it in GitHub Desktop.
Save jniemann66/2d85018d40ca07e1dcb03e05ed2f14ed to your computer and use it in GitHub Desktop.
Qt: Blocking wait for signal
// QMake: QT += testlib
#include <QSignalSpy>
QSignalSpy spy(someObject*, &someClass::someSignal);
spy.wait(2000 /* Timeout ms */);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment