Implementing the slot

Then you implement the slot by adding the following lines in the parenthesis of:

void SigCreate::slotCreateSig()
{}
to implement the slot
	sigBox->append("\n--");
 	sigBox->append(nameBox->text());
 	sigBox->append(mailBox->text());
 	sigBox->append(commBox->currentText());
and also the corresponding headers of course:
 #include <qlineedit.h>
 #include <qcombobox.h>
 #include <qmultilineedit.h>
Run Build -> Run automake & friends, Build-> Run Configure, Build -> Build Project, Build -> Install (or Build->Install as root user), Build -> Execute Program. That's it! The program is working! See Picture 20 below.

A few more words about signals and slots. The signals and slots mechanism is type safe: the signature of a signal must match the signature of the receiving slot (for example, you will connect valueChanged(int) with a slot having an int as argument). And another thing to keep in mind is that all classes that inherit from QObject or one of its subclasses (e.g. QWidget) can contain signals and slots.

All the strings that you use in your KDE program must be wrapped in the i18n() function (klocale.h as header) because all KDE projects are translated. Please see the KDE Translation HowTo to learn more about i18n and Chapter 5 of this tutorial to make your own translations for your application.

If you need any help you can either send me a mail or come and have a chat with me (irc.openprojects.net, join channel #kde-women or #kde-devel and my nickname is annma).

You can download the source code of the SigCreate project by clicking on sigcreate-0.1.tar.gz. Please note that you need Qt-3.2.0 or higher to build it.