-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
The WA_KeyboardFocusChange is propagated to QWidget::window() within QApplicationPrivate::setFocusWidget() which leads to the behavior that from now on all focus changes (even with the mouse) carry this attribute.
The only way to reset this attribute is to hide the QWindow::window() (QWidgetPrivate::setVisible() resets the attribute in this case).
Looking into the code this was always the case but imo it stayed onnoticed since no style did something with this until now. The WinUI3/windows11 style draws a focus rect on keyboard focus changes but not for focus changes through mouse events.