Hello,
I
Basic Info - Getting Started
Moderator: Moderators
Hi Christian,
the easiest thing to start with would probably be the xapp.c example provided with the SDK. Its a very basic X11 application, that opens a little window, tells the driver that it wants to receive data from opur driver, processes the incoming events and prints the device data.
If you have/want to use a toolkit like QT, GTK or else, things may get a bit more complicated, but will also work.
What kind of software will it be? Will it be a X11/Motif application or do you plan to use a modern toolkit like QT or GTK?
Regards,
Christian Robl
3Dconnexion
the easiest thing to start with would probably be the xapp.c example provided with the SDK. Its a very basic X11 application, that opens a little window, tells the driver that it wants to receive data from opur driver, processes the incoming events and prints the device data.
If you have/want to use a toolkit like QT, GTK or else, things may get a bit more complicated, but will also work.
What kind of software will it be? Will it be a X11/Motif application or do you plan to use a modern toolkit like QT or GTK?
Regards,
Christian Robl
3Dconnexion
Hi gertius,
just like Absum says you always need a X11 window, which you have with your QMainQWindow basing on X11.
Since you are using QT it should be possible to do a MagellanSetWindow() with your QMainWindow's id (I'm sorry I haven't tried with Qt yet). You should then receive events in your Qt event loop, which you'll have to process like in xapp.c or the like.
This will save you this extra window solution you've now.
Maybe this thread can give you a bit of an idea, although I assume its probably not what you're looking for.
Please let me know how things are developing or if I can you help any further!
Regards,
Christian
just like Absum says you always need a X11 window, which you have with your QMainQWindow basing on X11.
Since you are using QT it should be possible to do a MagellanSetWindow() with your QMainWindow's id (I'm sorry I haven't tried with Qt yet). You should then receive events in your Qt event loop, which you'll have to process like in xapp.c or the like.
This will save you this extra window solution you've now.
Maybe this thread can give you a bit of an idea, although I assume its probably not what you're looking for.
Please let me know how things are developing or if I can you help any further!
Regards,
Christian