If I read the code correctly, QGuiApplicationPrivate::_q_updateFocusObject() is the slot that calls setFocusObject() on the input context, and it is being connected to/called in QGuiApplicationPrivate::processActivatedEvent(). It would be interesting to instrument that code (yes, that means rebuilding Qt…) to understand what’s going on more in depth. It might be a problem in QtUbuntu itself.
If I read the code correctly, QGuiApplication Private: :_q_updateFocus Object( ) is the slot that calls setFocusObject() on the input context, and it is being connected to/called in QGuiApplication Private: :processActivat edEvent( ). It would be interesting to instrument that code (yes, that means rebuilding Qt…) to understand what’s going on more in depth. It might be a problem in QtUbuntu itself.