Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can i set QLineEdit as current widget?
Ruzik last edited by
I have some QLineEdit, how can i set it as current widget to user can input text immediately after this.
I try it:
But it does not worke.
ChrisW67 last edited by
What "does not work" about it? You'll need to provide more information because line 1 is exactly what you should do.
Sam last edited by
May be you are setting some other values as well / changing focus. As per the above comment lineEdit->setFocus() does the work. You can create just a sample app and cross check.