Hi again Viktor Kolesnyk
Sorry for delay in replying. It is very strange.
Perhaps there is something different about your Qt project when compared to the SDK C++ COM example that makes the wrong value come through...
Some questions:
- Is the deviceState correct just after the call to get_State? Or when your Qt qApp object receives your custom DeviceStateChangedEvent?
- Is the Qt project compiled/linked with any different options when compared to the SDK C++ COM example?
- Could your Qt project be picking up a different definition of DeviceState enum from somewhere?
Finally, could you send me a complete self-contained example Qt project with just minimal code just to illustrate the issue? That way I can test at my end and dig a little deeper...
Thanks,
Lewis.