Add Slot In Qt Designer
I'm trying to a build a gui using the roscreate-qt-pkg in QtCreator. In trying to generate code using 'Go to Slot...' in the template, I get the following:
No documents matching 'ui_main_window.h' could be found.Rebuilding the project might help.
- Qt Designer Widgets. Of an empty Qt project Adding the main.cpp source file. Objects in Qt Object Communication using Signals & Slots 27/96.
- Then we use Qt Designer to modify the user interface files to show a text edit and a push button in a window on the desktop. This represents a simple Qt application that has a GUI. Finally, we add user interaction to the application by creating actions for opening and saving files.
In Part 1, we constructed our application framework and layout using Qt Designer. Part 2 of this series explored the custom subclass creation that was necessary to add custom logic to our application. In this installment, we will look at adding multiple figures to our application and including their names in the list widget.
Add Slot In Qt Designer App
Is this an existing issue or am I forced to manually edit the cpp and hpp files to add buttons, etc?
Comments
What ros version are you using - electric or fuerte? Also what do you mean by 'In trying to generate code using 'Go to Slot'?
Without modifying anything, roscreate-qt-pkg on electric and roscreate-qt-legacy-pkg on fuerte should create packages that build compilable, runnable programs for you. Note that roscreate-qt-pkg on fuerte is only for catkin builds (if you don't know what that is, don't worry about it).
Add Slot In Qt Designer Download
I'm using electric. The programs compile and run fine but adding new ui elements and attempting to add code for them gives the error I stated above, when using the 'go to slot' option when right clicking a ui object.