UGlobalHotkey
UGlobalHotkey copied to clipboard
Shortcut never activated in Qt6
Hi dear team, I made some test on Qt6 and it seems that you cannot get an active shortcut anymore =/ I don't know if the nativeevent function is responsible from this behaviour. Anyway thanks for providing this usefull tool!
Change in file uglobalhotkeys.h and uglobalhotkeys.cpp the signature for the function
bool nativeEvent(const QByteArray &eventType, void *message, long *result)
into
bool nativeEvent(const QByteArray &eventType, void *message, qintptr *result)
and the hotkeys will work also for Qt 6