7ui(newUi::Dialog)8{9ui->setupUi(this);10ui->pushButton->setStyleSheet("color:black");11}1213Dialog::~Dialog()14{15deleteui;16}1718voidDialog::on_pushButton_clicked()19{20qApp->exit(RETCODE_RESTART);21}