Obsolete Members for QQuickTest

Os seguintes membros da classe ` QQuickTest ` estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.

Funções

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

Documentação das funções

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

Essa função está obsoleta desde a versão 6.4. Recomendamos enfaticamente que não seja utilizada em código novo.

Use ` qWaitForPolish()` em vez disso.

Aguarda timeout milissegundos ou até que updatePolish() seja chamada em item.

Retorna ` true ` se ` updatePolish() ` tiver sido chamado em ` item ` dentro de ` timeout ` milissegundos; caso contrário, retorna ` false`.

O equivalente em QML desta função é waitForItemPolished().

Veja também QQuickItem::polish(), QQuickItem::updatePolish() e 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.