You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PhysSong I recommend looking into the keyPressEvent on the QMenu in general however this drop-down is actually a custom made ComboBox (not a QMenu, not a QComboBox I don't think).
I recommend binding a keyPressEvent that propagates to the parent widget. It seems to be trapping the keystrokes inside the widget.
For starters, I'd mimic the way we capture mousePressEvent and once you have your events being captured, decide how to proccess them.
Ok, you're right, it uses a QMenu under the covers. Since AFAIK there's no externally exposed API method to override QMenu's keypress events, you will likely need to subclass the menu to grab the proper virtual function. Seems overkill if coming from a non-C++ language, but I think it's needed. I had a similar conversation with jasp00 about the need to subclass for a single function this thread.
How to reproduce:
Reason: ComboBox uses QMenu to show contents, and it screens key events.
Is there anyone who knows how to fix this?
The text was updated successfully, but these errors were encountered: