Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.3.0
-
ArchLinux x64, Xfce with XFWM 4.10.1
-
ee22c6505a1f7cf52a862b1bd9219511db893417
Description
After setting focus to QWindow container and then changing focus to some other normal QWidget it is not possible to focus QWindow container again. This bug appeared in Qt 5.3, Qt 5.2.1 works fine.
Steps to reproduce:
1) Create main widget with two child widgets, one of them created using createWindowContainer. Set StrongFocus policy on both of them. Run this test program.
2) Click on QWindow container - it receives focus
3) Click on normal QWidget - it receives focus
4) Click on QWindow container again - focus remains on normal QWidget
Also I've found some interesting clues:
1) if you alt-tab from application to another one and switch back you can focus QWindow container again, but again only once
2) if you create two QWindow containers in application you can change focus between them without problem. Only changing focus from QWindow to QWidget and then back to the very same QWindow is broken
I've attached minimal test case.
Attachments
Issue Links
- relates to
-
QTBUG-37404 Focus handling between widgets and controls is not in order
- Open
-
QTBUG-24326 QMenuBar autotest fails in various places
- Closed
-
QTBUG-32175 Mac OS: QWidget::createWindowContainer loses focus and can't get it back
- Closed