Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.7.1
-
None
Description
Currently QGraphicsView/Scene do focus changes on mouse press and the behavior is quite hardcoded there. This is very bad for touch based devices that implement panning. Without nasty workarounds, starting to pan would move the focus away from what was focused, and panning shouldn't really have any side-effects. Furthermore, with virtual keyboard the focus change might make changes there and that, as consequence, might trigger text entry relocation on the application side for ensuring visibility. To bypass these problems, Meegotouch currently delays passing mouse presses to QGraphicsScene, which is not too nice.
What should really happen is possibility to have focus changes on mouse release.
Couple possibilities:
- Add a flag to change focus behavior and introduce a way for pannable widgets to omit the change on following release.
- Introduce a flag for QGraphicsItem that would make the item behave as "black holes" for focus changes. Clicks on those would not have absolutely any side-effects on the focus. Should be easy to implement. Pannable widgets would then have to re-implement focus handling.
As QML is using QGraphicsView, this naturally reflects there also.