The dialog window has three widgets: QComboBox, QLineEdit and QPushButton. When dialog is shown the QLineEdit is being set as "current" by default. Any keyboard entry performed will be entered straight into QLineEdit field.
Instead of QLineEdit I want QPushButton to be current. So the user could hit a keyboard "Enter" key to trigger the function connected to QPushButton. What flag or attribute of QPushButton needs to be set to achieve this?
setFocusPolicy
to prevent that widget automatically gaining focus. – all or NonesetTabOrder(widget1, widget2)
– 0rko