运行就成功了
我要在输入密码以后,按enter触发登录
就这么写
connect(ui->lineEdit_2, &QLineEdit::returnPressed, this, &MainWindow::on_loginBtn_clicked);