赞
踩
//只需要将pushButton的clicked()信号连接widget窗口的close()槽函数即可 QObject::connect(btnClose, SIGNAL(clicked()), MainWindow, SLOT(close()));