Qt退出界面
void Dialog::on_pushButton_clicked()
{
if(ui->lineEdit->text() == "admin" && ui->lineEdit_2->text() == "123")
{
accept();//退出
}
}
void Dialog::on_pushButton_clicked()
{
if(ui->lineEdit->text() == "admin" && ui->lineEdit_2->text() == "123")
{
accept();//退出
}
}