![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qcoreapplication.h>
#include <QtCore/qdeadlinetimer.h>
#include <chrono>
Go to the source code of this file.
Namespaces | |
namespace | QTest |
[15] | |
namespace | QTest::Internal |
Enumerations | |
enum class | QTest::Internal::WaitForResult { QTest::Internal::Failed = -1 , QTest::Internal::NotYet = 0 , QTest::Internal::Done = 1 } |
Functions | |
Q_CORE_EXPORT void | QTest::qSleep (int ms) |
\variable QTest::defaultTryTimeout | |
Q_CORE_EXPORT void | QTest::qSleep (std::chrono::milliseconds msecs) |
bool | QTest::Internal::waitForMore (bool) |
bool | QTest::Internal::waitForMore (WaitForResult value) |
bool | QTest::Internal::waitForSucceeded (bool value) |
bool | QTest::Internal::waitForSucceeded (WaitForResult value) |
template<typename Functor> | |
bool | QTest::qWaitFor (Functor predicate, QDeadlineTimer deadline=QDeadlineTimer(defaultTryTimeout.load(std::memory_order_relaxed))) |
template<typename Functor> | |
bool | QTest::qWaitFor (Functor predicate, int timeout) |
Q_CORE_EXPORT void | QTest::qWait (int ms) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Waits for msecs. | |
Q_CORE_EXPORT void | QTest::qWait (std::chrono::milliseconds msecs) |
Variables | |
Q_CORE_EXPORT std::atomic< std::chrono::milliseconds > | QTest::defaultTryTimeout {5s} |