Answer the question
In order to leave comments, you need to log in
QShortcut not working when window is out of focus?
In general, I don’t understand how to make hot buttons work when the window is minimized, how can I fix this?
Answer the question
In order to leave comments, you need to log in
All right. QShortcut allows you to create shortcuts for a window , and they should not work when the window is not in focus.
You need global hotkeys. In pure Qt, there are none, you have to write them yourself or look for ready-made solutions (for example, QxtGlobalShortcut ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question