ui->lineEdit->setFocus(); ui->lineEdit->clearFocus();
QKeyEvent ke(QEvent::KeyPress, Qt::Key_Enter, 0,0,0); QCoreApplication::sendEvent( ui->lineEdit, &ke );
ui->lineEdit->activateWindow();
ui->lineEdit->setInputMethodHints(Qt::ImhNoPredictiveText);