UGlobalHotkey icon indicating copy to clipboard operation
UGlobalHotkey copied to clipboard

Shortcut never activated in Qt6

Open RomainCendre opened this issue 3 years ago • 1 comments

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!

RomainCendre avatar Mar 02 '21 12:03 RomainCendre

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

mneuroth avatar Aug 14 '22 16:08 mneuroth