Home | Tutorials | Wiki | Issues
Ask Your Question
1

Accesing Qt events using a System/GUI plugin

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

AndreiHaidu gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

amptrofa gravatar image

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

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.

edit flag offensive delete link more

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!

AndreiHaidu gravatar imageAndreiHaidu ( 2013-12-03 08:07:28 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 580 times

Last updated: Dec 03 '13