Last active
June 21, 2017 22:41
-
-
Save jniemann66/2d85018d40ca07e1dcb03e05ed2f14ed to your computer and use it in GitHub Desktop.
Qt: Blocking wait for signal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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