You "fill in" the code of the extra slots when you define the class which uses the designer form.
Using the slots in designer only results in one line of code connecting the widgets (which dosen't require the slots to be implemented because the signal and slot arguments of QObject::connect are just char*).
If you have a QPushButton connecting to a custom slot of your QWidget form this code could look something like this:
QObject::connect(neatPushButton,
SIGNAL(clicked
()), yourForm,
SLOT(foo
()));
QObject::connect(neatPushButton, SIGNAL(clicked()), yourForm, SLOT(foo()));
To copy to clipboard, switch view to plain text mode
So you just have to define and implement the slot in the class using the form. (which makes the direct approach pretty pointless; you would have to write a QWidget subclass either way)
Bookmarks