BUG: keyReleaseEvent does not fire if focus changed to child widget
-
here is video
https://dump.video/i/JkNLyYhO.mp4i am catching global window keys and pressing a key.
Then I switch focus to child widget, and as you can see window no longer receives key release event.With this bug I cannot create a custom shortcut implementation
-
here is video
https://dump.video/i/JkNLyYhO.mp4i am catching global window keys and pressing a key.
Then I switch focus to child widget, and as you can see window no longer receives key release event.With this bug I cannot create a custom shortcut implementation
@ieprov said in BUG: keyReleaseEvent does not fire if focus changed to child widget:
i am catching global window keys
How exactly? Please show the code.
-
@ieprov said in BUG: keyReleaseEvent does not fire if focus changed to child widget:
i am catching global window keys
How exactly? Please show the code.
-
@ieprov I think for your use case you need to install an event filter. See https://doc.qt.io/qt-6/eventsandfilters.html
-
installEventFilter on window handle (QWindow) do not receive events when I clicked to MenuBar.
but events exist in QApplication.notify()
it seems like if keyPressed and then QWindow was changed to opened QMenu, no keyRelease was emiited to previous QWindow.