summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dscatter-modelproxy
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2021-02-09 12:27:08 +0200
committerTomi Korpipaa <tomi.korpipaa@qt.io>2021-02-10 12:49:19 +0200
commit33d47ef27ed26c49abb8cae3e9576defe0ea7e5b (patch)
tree901ccbd3fd67a4231b9e0546a4b0b0e7c912c03d /tests/auto/cpptest/q3dscatter-modelproxy
parent824e0ba21a7b1e56264989c243c3138b09458751 (diff)
Fix failing autotests
QSG_RHI_BACKEND needs to be forced to opengl for the QML test like in any other QML application. Model/height proxy tests need a bit more time for the proxy data to stabilize, so extra QCoreApplication::processEvents() calls were added to handle that. Fixes: QTBUG-90710 Pick-to: 6.1 Change-Id: I594040e8d504d680ff1990147835a106cc53d922 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Diffstat (limited to 'tests/auto/cpptest/q3dscatter-modelproxy')
-rw-r--r--tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
index cd0f0b3a..9bcfbe8a 100644
--- a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp
@@ -188,6 +188,7 @@ void tst_proxy::addModel()
m_proxy->setYPosRoleReplace(QStringLiteral("\\3"));
m_proxy->setZPosRolePattern(QRegularExpression(QStringLiteral("^(\\d*)(\\/)(\\d*)\\/\\d*[\\.\\,]?\\d*\\/\\d*[\\.\\,]?\\d*$")));
m_proxy->setZPosRoleReplace(QStringLiteral("\\1"));
+ QCoreApplication::processEvents();
QScatter3DSeries *series = new QScatter3DSeries(m_proxy);
Q_UNUSED(series);