Obsolete Members for TestCase
以下 QML 类型TestCase的成员已被弃用。提供它们是为了让旧源代码继续工作。我们强烈建议不要在新代码中使用它们。
方法(Methods
- bool waitForItemPolished(object item, int timeout)
(deprecated in 6.5)
方法文件
自 QtTest 6.5 起,该方法已被弃用。我们强烈建议不要在新代码中使用该方法。
请使用waitForPolish() 代替。
等待timeout 毫秒或直到item 上的updatePolish() 被调用。
如果在timeout 毫秒内调用了item 上的updatePolish()
,则返回true
,否则返回false
。
另请参阅 isPolishScheduled()、QQuickItem::polish() 和QQuickItem::updatePolish()。
© 2025 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.