waitForSignal
waitForSignal(object, signalSignature)
waitForSignal(object, signalSignature, timeoutMSec)
This function waits for Qt (not Unix!) signal to be emitted by the given object. The object
is a reference to object and can be obtained from one of the functions returning object references (e.g. Object waitForObject(objectOrName) or Object findObject(objectName). The signalSignature
must be a string, and contain the exact signature used in C++ with no parameter names (see installSignalHandler(objectOrName, signalSignature, handlerFunctionName) for examples of valid signatures). The duration of the waiting loop is defined by the testSettings.waitForObjectTimeout property or if the optional timeoutMSec
parameter is used, that many milliseconds. If the signal doesn't arrive within the given timeout, (catchable) RuntimeError
exception is raised.
waitForSignal(waitForObject(names.window_Window), "titleChanged()")
waitForSignal(waitForObject(names.windowWindow), "titleChanged()")
waitForSignal(waitForObject($Names::window_window), "titleChanged()");
waitForSignal(waitForObject(Names::Window_Window), "titleChanged()")
invoke waitForSignal [waitForObject $names::window_Window] "titleChanged()"
© 2024 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners.