how to pass the focus to next widget
-
Hello,
i have a list of QLineEdit items. Is it possible to pass the focus to the next widget, as soon i finished edit one QlineEdit??
for example: i select 1st QlineEdit, edit text, and i press enter. Then the signal editingFinished() is called, and i perform my checks onto the text inserted. Then i have to press the "Tab" Key click with mouse to select the next item, what i want is a simple way to auto-pass the focus to the next QLineEdit, in the same way if i were pressing Tab.
Is there a simple way to do it?
I tryied the "focusNextChild()" method on main widget, but it does not work very well,
can you suggest something better?Kind Regards,
emazed -
Hello,
i have a list of QLineEdit items. Is it possible to pass the focus to the next widget, as soon i finished edit one QlineEdit??
for example: i select 1st QlineEdit, edit text, and i press enter. Then the signal editingFinished() is called, and i perform my checks onto the text inserted. Then i have to press the "Tab" Key click with mouse to select the next item, what i want is a simple way to auto-pass the focus to the next QLineEdit, in the same way if i were pressing Tab.
Is there a simple way to do it?
I tryied the "focusNextChild()" method on main widget, but it does not work very well,
can you suggest something better?Kind Regards,
emazed