Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10584

Focusable graphics widget behind focusable declarative item steals focus from declarative item on mouse press

    XMLWordPrintable

Details

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jpetrell Joona Petrell
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes