Qt 4.8.x sample

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

Moderator: Moderators

Post Reply
pettersson
Posts: 3
Joined: Thu Sep 03, 2015 7:30 am

Qt 4.8.x sample

Post by pettersson » Thu Oct 05, 2017 2:25 am

Hi,

are there any samples using a 3dconnexion device with Qt 4.8 using XEvents? I wrote some code to setup the device to the xwindow of the Qt application, and it opens the 3DxWare window, but no XEvents are reaching the Qt application.

Basically I took the initialize and setWindow code from the sample application and added that to my Qt application, hoping the XEvents would show up in the overriden x11EventFilter method in the QApplication.

Has anyone gotten this to work? I saw a direct implementation using hidapi, sadly this is not a viable solution for me right now.


Thanks for any hints
pettersson

pettersson
Posts: 3
Joined: Thu Sep 03, 2015 7:30 am

Re: Qt 4.8.x sample

Post by pettersson » Thu Oct 05, 2017 5:19 am

To elaborate a little more, using debug outputs, it looks ok. CommandMessage for the window goes to "Magellan Window" and the xclient.data is set to the actual application window. Yet I don't get any XEvents from the device.

Post Reply