Obsolete Members for TestCase

The following members of QML type TestCase 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

方法

方法文档编制

bool waitForItemPolished ( 对象 item , int timeout = 5000)

This method is deprecated since 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 ().