In Qt5 winEvent
was replaced by nativeEvent
:
bool winEvent(MSG* pMsg, long* result)
is now
bool nativeEvent(const QByteArray & eventType, void * message, long *result)
And in EcWin7::winEvent
you have to cast void
to MSG
:
bool EcWin7::winEvent(void * message, long * result)
{
MSG* msg = reinterpret_cast<MSG*>(message);
if (msg->message == mTaskbarMessageId)
{
...
I was able to get the application to work! Just replace:
mWindowId = wid;
with
mWindowId = (HWND)wid;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…