connect()方法的语法一般如下表述: connect(sender, SIGNAL(signal), receiver, SLOT(slot)); 一个信号可以连接多个槽 connect(slider, SIGNAL(valueChanged(int)), spinBox, SLOT(setValue(int))); connect(slider, SIGNAL(valueChanged(int)), this, SLOT(updateStatusBarIndicator(int))); 多个信号可以连接单个槽 connect(lcd, SIGNAL(overflow()),