Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6.1
-
None
Description
Some flakiness exist in tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets() between widget.hide() and widget.show(). This is caused by a race condition occuring in qxcbwindow.cpp where the dispatcher might send show events, before the hide events have been processed properly. Resulting in failing the test.
We identified the issue has clearly coming from the event dispatcher.*
In the tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets() we aimed at removing the antipattern QApplicationPrivate::setActivateWindow(). If the race condition is solved this should pass without issue.
Nb: We also found that by increasing the time to for example 1500 the test will pass without issue, so we could later confirm that the issue is related to the event dispatcher (where hide() and show() can get on top of each other and make the test fail)