Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.7.1
-
None
-
f17c706db16aae93f024e88208e139063f5b2c7c
Description
Graphics scene sets focus on mouse press (see function QGraphicsScenePrivate::mousePressEventHandler). Declarative items want to set focus themselves, which currently causes graphics scene to momentarily change focus incorrectly to focusable graphics widget if it's below focusable declarative item. The declarative item resets the focus to itself later when it receives the mouse press event, causing mouse presses to oscillate focus between the overlapping graphics widgets and declarative items. This breaks event delivery and input panel support in applications, which use both graphics widgets and declarative items to build the interface.
Click text elements in attached qml file to repro.