[Development] Why Widget::grabMouse() installs WH_JOURNALRECORD hook on Windows in Qt 4.8.x
Friedemann Kleint
Friedemann.Kleint at qt.io
Fri Apr 27 08:37:50 CEST 2018
Hi,
> journalRec = SetWindowsHookEx(WH_JOURNALRECORD,
(HOOKPROC)qJournalRecordProc, GetModuleHandle(0), 0);
> Since this clearly a hack that was obviously needed to make mouse
grabbing working, I would very much like to know why it was done in this
way and what was the original problem.
some digging in the history failed to reveal any information on why
this done; the code can be safely removed, I think.
Regards,
Friedemann
--
Friedemann Kleint
The Qt Company GmbH
More information about the Development
mailing list