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

Make sure that we Qt::WA_InputMethodEnabled is set on the QGraphicsView *before* we send the FocusInEvent

    XMLWordPrintable

Details

    • e24b4b83fa4e71ab137ac254a9c69fec672d5e66, b7ea50145c6dc443e15d9f3f1e1dd1737a5135cc

    Description

      Today when a QGraphicsItem receives a FocusInEvent, the QGraphicsView still does not have the Qt::WA_InputMethodEnabled flag. This is a problem. For some frameworks (e.g. Orbit) they need to notify the IM framework that the focus has changed, and that is done by calling QInputContext::setFocusWidget() (with the graphics view as the widget argument) when focus changed inside graphicsview. Calling that function with a widget that does not have the Qt::WA_InputMethodEnabled attribute set will make it assert.

      Attachments

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

        Activity

          People

            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            smd Jan Arve
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes