How to use sdk on Qt platform?
Moderator: Moderators
How to use sdk on Qt platform?
I am currently using a 3d space mouse to control robot movement, which is based on the Qt platform. How can I use sdk?
Re: How to use sdk on Qt platform?
Hi lawliet ,
In this method, you will perform a cast of the "message" parameter to type MSG. After this, you should be able to follow the SDK examples on how to parse the data.
Note you will need to get the window handle by casting this->winId() to HWND in your MainWindow constructor. This is the HWND passed in to the SiOpen() call.
Again, I have not verified any of the above and it may not be exactly what you're looking for.
I don't use Qt but I've seen discussions on this topic. In Qt5, you have to redefine the method nativeEven in your MainWindow:
In this method, you will perform a cast of the "message" parameter to type MSG. After this, you should be able to follow the SDK examples on how to parse the data.
Note you will need to get the window handle by casting this->winId() to HWND in your MainWindow constructor. This is the HWND passed in to the SiOpen() call.
Again, I have not verified any of the above and it may not be exactly what you're looking for.
Nuno Gomes