I’ve been looking for a way to trap and retrieve system messages in Qt4, specifically the WM_DEVICECHANGE messages among others. I know how to in C# but can find any conclusive text on how to in Qt4.
Thanks in advance..
I’ve been looking for a way to trap and retrieve system messages in Qt4,
Share
Look into implementing the winEvent() method, say, in your MainWindow subclass.
I just tested the above by inserting my USB video camera into the system and removing it and I did get appropriate looking output into the plaintext edit. You should see further info on the winEvent() method in the Qt docs, of course. (For info on when to return false or true from the function etc)