ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Still not sure what your 'go to slot' option is (in designer?). When adding a new button, I usually follow the process below:

  • Run designer on ui/main_window.ui
  • Add a new button inside designer
  • Save the designer update.
  • In a shell, make clean and make (regenerate the code).
  • In my cpp editor, add a slot callback function in main_window.hpp and main_window.cpp

Note that the slot callback function has to be named to match the action and the name of the button you added - this is qt's auto-connect feature. If you get the name right, you don't need to do any explicit connecting of button to callback in designer or in your code.