Gazebo | Ignition | Community
Ask Your Question

Accesing Qt events using a System/GUI plugin

asked 2013-11-19 09:33:31 -0600

AndreiHaidu gravatar image


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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-02 21:14:18 -0600

amptrofa gravatar image

updated 2013-12-03 07:33:08 -0600

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/ that looks like it does what you need.

edit flag offensive delete link more


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!

AndreiHaidu gravatar imageAndreiHaidu ( 2013-12-03 08:07:28 -0600 )edit

Question Tools


Asked: 2013-11-19 09:33:31 -0600

Seen: 1,325 times

Last updated: Dec 03 '13