feat:增加注KEY完成后,主动获取焦点;

develop
lichongyuan 2 months ago
parent 5b28791bbf
commit cfee789741

@ -68,12 +68,9 @@ void Widget::initUI()
void Widget::setSNLineEditFocus() void Widget::setSNLineEditFocus()
{ {
// 全选LineEdit并且焦点放在LineEdit上 // 全选LineEdit并且焦点放在LineEdit上
#ifdef TEST_MODE
QString tmpSn = ui->lineEdit_snId->text();
ui->lineEdit_snId->setText("1234567890123456");
#endif
ui->lineEdit_snId->clear(); ui->lineEdit_snId->clear();
ui->lineEdit_snId->setFocus(); ui->lineEdit_snId->setFocus();
this->activateWindow();
} }
int Widget::checkSNId(const QString &snId) int Widget::checkSNId(const QString &snId)

Loading…
Cancel
Save