I'm trying to make a trigger for the Ok button in my application The current code I tried was this:
self.okPushButton.setShortcut("ctrl+Enter")
However, it doesn't work, which kind of makes sense. I tried looking up some key sequences here, but, again, a similar issue if I try with the shift
or alt
keys.
How can I trigger the OkButton with ctrl+Enter