qt-QPushButton

使用 qt designer 创建信号槽关联。

或者使用代码关联

// Connect button signal to appropriate slot
connect(m_button, SIGNAL (released()), this, SLOT (handleButton()));

public slots:
void onBtn_driver_config();

void QtGuiApplication1::onBtn_driver_config()
{
QMessageBox::information(NULL, "info", "onBtn_driver_config", QMessageBox::Ok);
}