1 前提 编译软件:Qt 2 从站具体实现 2.1 槽函数 2.1.1 连接的槽函数 void MainWindow::on_sConBtn_clicked() { QString strText =ui->sConBtn->text(); if(strText ==