Closed fameowner99 closed 2 years ago
But you can use QObject::sender() for it.
But you can use QObject::sender() for it. I tried this way with QObject::sender but this doesnt work
So I did some changes to receive hotkey as an argument.
Right, it's because you can call it only inside a QObject
. Just move your code into an class that derives QObject
.
Ok, thank you
It will be usefull when you need QHotkey in slot