[Interest] Change of indirection of message pointer in nativeEvent()?
Olivier B.
perso.olivier.barthelemy at gmail.com
Wed Oct 24 09:17:48 CEST 2018
With Qt 5.6.2, i used nativeEvent() to capture Windows minimize
command. I casted the void* message into a MSG* and could read it
properly
Now, with Qt 5.11.1, this did not detect the messages anymore.
Debugging, i noticed that at the call of
QWindowSystemInterface::handleNativeEvent() by filterNativeEvent(),
the MSG* is not casted as void*, but we pass the address of the MSG*
in the void* argument.
So now, in nativeEvent(), to properly decode the message, i have to
cast the void* to LPMSG, then dereference it to get the original MSG*
Was that change intentionnal?
More information about the Interest
mailing list