void MainWindow::on_pushButton_Connect_clicked() { handle_ConnectButtonPressed(); }
void MainWindow::handle_ConnectButtonPressed() { // 處理 Connect Button 按下 QColor tc = ui->textEdit_Log->textColor(); ui->textEdit_Log->setTextColor(QColor("red")); ui->textEdit_Log->append("test 1"); ui->textEdit_Log->setTextColor(tc); ui->textEdit_Log->append("test 2"); }