Obsolete Members for QQuickTest

QQuickTest クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが引き続き動作するように提供されているものです。新しいコードでの使用は強く推奨しません。

関数

(deprecated in 6.4) bool qWaitForItemPolished(const QQuickItem *item, int timeout = defaultTimeout)

関数のドキュメント

[deprecated in 6.4] bool QQuickTest::qWaitForItemPolished(const QQuickItem *item, int timeout = defaultTimeout)

この関数はバージョン 6.4 以降、非推奨となっています。新しいコードでの使用は強くお勧めしません。

代わりにqWaitForPolish()を使用してください。

timeout ミリ秒間待機するか、item に対してupdatePolish()が呼び出されるまで待機します。

timeout ミリ秒以内にitem に対してupdatePolish() が呼び出された場合はtrue を返し、そうでない場合はfalse を返します。

この関数の QML での対応はwaitForItemPolished() です。

QQuickItem::polish()、QQuickItem::updatePolish()、およびQQuickTest::qIsPolishScheduled()も参照してください 。

© 2026 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.