qt-global-hook qt widgets detect the actions of mouse events and keyboard events when it is minimized or the focus is not on it. load ths DLL,copy the HOOK/(Debug|Release)/HOOK.dll to the same directory of Qt executable file.