Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.3.0 RC
-
None
Description
tst_qquickitem2 fails with the error:
FAIL! : tst_QQuickItem::colorGroup() 'QTest::qWaitForWindowActive(&view)' returned FALSE. () Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickitem2/tst_qquickitem.cpp(3796)]
The error is in tests added in summer 2021:
introduced in
https://codereview.qt-project.org/c/qt/qtdeclarative/+/353901
There is an "activationThief" stealing activation by
QWindow activationThief; activationThief.show(); activationThief.requestActivate();
This works, but the view stealing back activation by
view.requestActivate(); QVERIFY(QTest::qWaitForWindowActive(&view));
fails on Android.
Observation:
It works if the activationThief is hidden before. The change in https://codereview.qt-project.org/c/qt/qtdeclarative/+/405644 circumvents the problem.