Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.3, 4.7.0
-
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.