回顾: 1.信号与槽 public slots: //先声明后实现 signals: //只需要声明 connect(sender,SIGNAL(signal()),receiver,SLOT(slot())); 信号可以与槽相连 信号可以与信号相连 connect(sender,SIGNAL(signal()),receiver,SIGNAL(signal())); 信号与槽的参数 connect(sender,SIGNAL(signal(int,QString)),receiver,SLOT