void Dialog::on_buttonBox_accepted(){ QString s1,s2,s3,s4; s1=ui->lineEdit_5->text(); s2=ui->lineEdit_6->text(); s3=ui->lineEdit_7->text(); s4=ui->lineEdit_8->text();}
connect(myform, SIGNAL(accepted()), this, SLOT(Dan(QString,QString,QString,QString)));
void MainWindow::Dan(QString s1, QString s2, QString s3, QString s4){ ui->label_2->setText(s1); ui->label_3->setText(s2); ui->label_4->setText(s3); ui->label_5->setText(s4);}
connect(myform, SIGNAL(mySignal(QString,QString,QString,QString)), this, SLOT(Dan(QString,QString,QString,QString)));
C++ (Qt)void Dialog::on_buttonBox_accepted(){ QString s1,s2,s3,s4; s1=ui->lineEdit_5->text(); s2=ui->lineEdit_6->text(); s3=ui->lineEdit_7->text(); s4=ui->lineEdit_8->text(); emit SignalPassText(s1, s2, s3, s4);}