File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1313,7 +1313,16 @@ Item {
1313
1313
1314
1314
Waits for \a ms milliseconds while processing Qt events.
1315
1315
1316
- \sa sleep(), waitForRendering()
1316
+ \note This methods uses a precise timer to do the actual waiting. The
1317
+ event you are waiting for may not. In particular, any animations as
1318
+ well as the \l{Timer} QML type can use either precise or coarse
1319
+ timers, depending on various factors. For a coarse timer you have
1320
+ to expect a drift of around 5% in relation to the precise timer used
1321
+ by TestCase::wait(). Qt cannot give hard guarantees on the drift,
1322
+ though, because the operating system usually doesn't offer hard
1323
+ guarantees on timers.
1324
+
1325
+ \sa sleep(), waitForRendering(), Qt::TimerType
1317
1326
*/
1318
1327
function wait (ms ) {
1319
1328
qtest_results .wait (ms)
You can’t perform that action at this time.
0 commit comments