Accesing Qt events using a System/GUI plugin
Hi,
Is there a way to access Qt in order to get access to its events using a GUI/System plugin?
The idea is to have access to keyboard events and to attach them to callbacks.
I am also interested in the possibility of adding new windows, widgets, buttons, using a plugin, not having to change gazebo source code.
Thanks, Andrei
Asked by AndreiHaidu on 2013-11-19 10:33:31 UTC
Answers
For new windows/widgets/buttons, GUIOverlays should allow you to put GUI elements like this on top of the World View (example 1,2). I think you're looking to add GUI elements to the main window, but I suspect this cannot be done with plugins.
Edit:
For key presses, I just found gui::Events::ConnectKeyPress
in /examples/plugins/presentation.cc that looks like it does what you need.
Asked by amptrofa on 2013-12-02 22:14:18 UTC
Comments
Thanks for the answer, I was looking through the source code for this, didn't noticed there is a plugin example for something similar, I will give this a shot as soon as I get the chance and add a code snippet as well if it works, Cheers!
Asked by AndreiHaidu on 2013-12-03 09:07:28 UTC
Comments