Hey!

I'm trying to make a class in Qt to handle communication with a turnable button with programable resistens. The button came with some functions for communicating with it. I can communicate with it just fine. Every time it is turn it sends a report to the serial port it's connected to. Untill now I've just been polling a function that came with the device for reading these reports. Now I was wondering if I somehow could check for input outside the main loop. Then when there's input call this function to read it.

I've tried solving this problem by overwriting the winEventFilter but I only see when the device is plugged-in or removed. No event goes through here when the device sends a report. Is there a good reason for this?
Then I found something about SerialPort::DataReceived Event but this seem only to be useful if I myself had initialized the port and not through the function I got with the device. Am I wrong?

Hope someone got a good advice on how to solve this!