Mouse Emulation With Qt

0 votes
asked May 24 by Prateek.Prakash (12 points)
Anyone else have issues with mouse emulation with a Qt application?
I know the pen is working because I have a event handler for when the pen moves which displays if the pen was moved.
I also can get the mouse emulation working if it's a normal OpenGL application.

However if I try the mouse emulation similarly in Qt, it doesn't seem to work.

1 Answer

0 votes
answered May 30 by ginglese (168 points)

Hi,

We are using mouse emulation with a qt (5.6) application and it works for us.

We are using these 2 functions:

lError = zcSetMouseEmulationTarget(mzSpaceContextmStylusHandle);
lError = zcSetMouseEmulationEnabled(mzSpaceContexttrue);

Does the SDK sample work? if yes, check if you only have one sdk instance installed, we had issues with mouse emulation with remaining sdk folders. 

Guillaume

commented Jun 21 by Prateek.Prakash (12 points)
Yup I got it working!
My mistake was I actually was calling the API is the wrong location. Regardless, thank you for your help and input!

-Prateek
...