In a dialog, how can i determine which widget I want to make the active one upon load?
Unsolved
General and Desktop
-
wrote on 18 Mar 2024, 00:17 last edited by
I have a dialog box with 4 line edit widgets and I want the first one to have the focus everytime I display the dialog.
What do I need to set?
I thought putting the tab order would do it but it doesn't. -
I have a dialog box with 4 line edit widgets and I want the first one to have the focus everytime I display the dialog.
What do I need to set?
I thought putting the tab order would do it but it doesn't.wrote on 18 Mar 2024, 00:27 last edited byuse setFocus() for this line edit.
https://doc.qt.io/qt-6/qwidget.html#setFocus -
use setFocus() for this line edit.
https://doc.qt.io/qt-6/qwidget.html#setFocus -
wrote on 18 Mar 2024, 01:40 last edited by
@jdent said in In a dialog, how can i determine which widget I want to make the active one upon load?:
is there no equivalent in Qt Designer?
2/4