void Widget::my_slot()
{
QString usrname,passwd;
usrname=ui->UsrEdit->text();
passwd=ui->UsrEdit_2->text();
if(usrname=="admmin"&&passwd=="123456")
{
this->close();
}
else
{
passwd.clear();
usrname.clear();
}
}
Widget::~Widget()
{
delete ui;
}
void Widget::on_exit_btn_clicked()
{
this->close();
}