Getting messages sent by PostMessage
Hi! I have a IVideoWindow which sends messages of mouse down to the handle of a window, which is a QFrame. I reimplemented mousePressEvent but I get no events in there. I even tried to listen to messages in the event(QEvent*) and winEvent(...) fanction of my QFrame, but I see nothing. Is it possible to get the messages sent from the IVideoWindow to the handle of the QFrame somwhow?
Thanks!
Re: Getting messages sent by PostMessage
Sure, winEvent should do that for you when you subclass the QFrame. If it doesn't you can always use QCoreApplication::winEventFilter
Re: Getting messages sent by PostMessage
winEvent was not getting any message. As soon as I can I'll try QCoreApplication::winEventFilter. Thanks!
Re: Getting messages sent by PostMessage
It seems nothing at all arrives as well in QCoreApplication::winEventFilter... Is it possible message is posted and I'm not, for some reason, able to get the message?
Re: Getting messages sent by PostMessage
You can use Spy++ from the Windows SDK to see if you are actually receiving a message before stepping through the Qt message pump system.
Re: Getting messages sent by PostMessage
Indeed the message was not sent. I fixed and now I get it in the event method.
Thanks!