Hi,

In the main window (QMainWindow) of my application, I have a form with a QPushButton named "Add".
I would like:
1-"Add" button is a default button.
2-When I click "Enter", the action "Add" is executed.

I tried to use the property autoDefault and default but it doesn't work because my main window (QMainWindow) is not a dialog (QDialog).

How can I do ?