Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.1.0 RC2
-
None
-
Mac OS 10.8.x. 5.1.0rc2.
Description
A Qml ListView placed into a QWidget via QWidget::createWindowContainer loses focus when the user deactivates application by switching to another one and focus does get restored when the user re-activates application by bringing it back to the front.
I've included a minimal example project to demonstrate this issue. Run the project. Click in the window. Press the up/down arrow keys to move the highlighted item. Now Cmd-Tab to another application such as Finder. Then Cmd-Tab back. Click in the window again and try the arrow keys. They no longer work (no focus).
You can also use qmlscene to run the raw xyz.qml. In this case, everything works properly, as expected.
Attachments
Issue Links
- is duplicated by
-
QTBUG-68872 Cannot focus TextFields after switching to another window on Mac for apps based on createWindowContainer
- Closed
- relates to
-
QTBUG-39362 Plain QWindow embedded by createWindowContainer does not regain focus after focussing widget
- Closed