Obsolete Members for TestCase

The following members of QML type TestCase 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

方法

方法文檔編製

[deprecated in 6.5] bool waitForItemPolished ( object item , int timeout = 5000)

This method is deprecated since QtTest 6.5. We strongly advise against using it in new code.

使用 waitForPolish () 代替。

等待 timeout milliseconds or until updatePolish () has been called on item .

返迴 true if updatePolish() was called on itemtimeout milliseconds, otherwise returns false .

另請參閱 isPolishScheduled (), QQuickItem::polish (),和 QQuickItem::updatePolish ().