The bottom line is, you cannot write slots in Qt 4 Designer. That functionality has been taken out, and the .ui.h file system abolished, in Qt 4. Qt4D does have a signal/slot editor, but that only applies to connecting existing signals to existing slots.Originally Posted by cioannou
To use your forms in programs, you need to follow the instructions in the Qt Designer Manual, specifically the section towards the bottom headed "Using Forms and Components".
To see an example of what the manual calls "The Single Inheritance Approach", you might like to look at the source code to my in-process app, to be found at its Sourceforge CVS repository: http://cvs.sourceforge.net/viewcvs.p...in/catkin-qtm/. You need to look at both catkin.h and catkin.cc, and note the use of the Ui namespace and the object which is used to set up the user-interface of another object. Thus, widgets and other objects coming from Qt Designer are clearly marked in the catkin.cc source code.
For the direct approach, two examples can be found in the catkin.cc file at the same repository, in the about() and getPreferences() methods.
Hope this helps.
Matt Smith
Bookmarks