Ask Your Question

rqt_gui_py.plugin PushButton event error

asked 2013-09-03 01:30:28 -0500

acp gravatar image

updated 2014-12-28 21:07:24 -0500

130s gravatar image

Hi all.

I have designed a very basic gui in QT5 designer. It consists of some pushbuttons. One of them has the quit event (name = quit).

void awc_gui::on_quit_clicked()

This gui works fine in Qt5, but when I export the .ui file to my ~/catkin_ws/src/rqt_awc/resource$ folder

I can load the plugin in rqt, however the event doest work. I have been taken a look at some examples and I have tried the following in my file
   def _on_quit_click(self):

I open the rqt after I have compiled the package with catkin_make in the catkin working space. Then I get the following error:
IndentationError: unindent does not match any outer indentation level

To be sincere I have no clue, any help will be appreciate it, and in advance thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-03 22:18:21 -0500

acp gravatar image

updated 2013-09-03 22:20:08 -0500

I got it work, I just have followed the plugin example in: The tutorials are good but still they are missing some things, and definitely they can be improved. So as a beginner I recommend to follow the tutorial and use the as an example and qt designer to create the .ui

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-09-03 01:30:28 -0500

Seen: 211 times

Last updated: Dec 28 '14