As an alternate solution, you can capture the KeyPressEvent, either using the above method or using a event filter and send a tab key event to the parent widget (i.e. converting a enter key event on a widget into a tab key event on the parent widget). This solution will respect the tab order, and is scalable solution, i.e. will work even if you changed tab order, or add more widgets in future.
As always, there are many ways to do a given job![]()
Bookmarks