@SimonSchroeder See the discussion around https://forum.qt.io/topic/155461/qlineedit-returnpressed-when-something-else-has-a-key_return-shortcut/16 for the pointlessness/potential evilness of the NumPad Enter key ;-)
@SGaist I finally solved the issue like this:
submitButton->setAutoDefault(false);
revertButton->setAutoDefault(false);
closeButton->setDefault(true);
Thank you all!!
@BigBen
Assuming you are wanting to return those values as soon as the startButton is clicked, you can just call void QDialog::done(int r) with the desired value. Or do that later with the value if you want it returned later.