connect接口:
[static] QMetaObject::Connection QObject::connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type = Qt::AutoConnection)
槽自动被调用
void on_chkBoxUnder_clicked(bool checked)
ui.h文件中 QMetaObject::connectSlotsByName(Widget)
使用sender()获得信号发射者
QObect::sender()
QSpinBox *spinBox = qobject_cast<QSpinBox *>(sender());