1)信号与槽函数必须有相同的参数类型,且参数类型顺序要相同:
connect(ftp, SIGNAL(rawCommandReply(int, const QString&)),
this, SLOT(processReply(int, const QString&)));
2)如果信号比槽的参数多,则多的参数将被忽略
connect(ftp, SIGNAL(rawCommandReply(int, const QString&)),
this, SLOT(processReply(int)));