To successfully connect a signal to a slot (or to another signal), they must have the same parameter types in the same order:
- connect(ftp, SIGNAL(rawCommandReply(int, const QString &)),
- this, SLOT(processReply(int, const QString &)));
Exceptionally, if a signal has more parameters than the slot it is connected to, the additional parameters are simply ignored:
- connect(ftp, SIGNAL(rawCommandReply(int, const QString &)),
- this, SLOT(checkErrorCode(int)));
If the parameter types are incompatible, or if the signal or the slot doesn't exist, Qt will issue a warning
at run-time if the application is built in debug mode. Similarly, Qt will give a warning if parameter names are included in the signal or slot signatures.