How to use sdk on Qt platform?

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
lawliet
Posts: 3
Joined: Tue Dec 25, 2018 7:26 pm

How to use sdk on Qt platform?

Post by lawliet »

I am currently using a 3d space mouse to control robot movement, which is based on the Qt platform. How can I use sdk?
ngomes
Moderator
Moderator
Posts: 3321
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: How to use sdk on Qt platform?

Post by ngomes »

Hi lawliet ,
lawliet wrote: Mon Jan 07, 2019 1:59 am I am currently using a 3d space mouse to control robot movement, which is based on the Qt platform. How can I use sdk?
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
Post Reply