I
I
Igor Kravchenko2015-01-15 02:47:56
Qt
Igor Kravchenko, 2015-01-15 02:47:56

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

1 answer(s)
D
Demonist, 2015-01-25
@kravasuper

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 question

Ask a Question

731 491 924 answers to any question