Hello,
I have created two buttons:
Qt Code:
  1. cancelButton = new QPushButton("Cancel");
  2. layout->addWidget(cancelButton, 2, 0);
  3. submitButton = new QPushButton("Submit");
  4. layout->addWidget(submitButton, 2, 1);
To copy to clipboard, switch view to plain text mode 
and connected them like this
Qt Code:
  1. connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));
  2. connect(submitButton, SIGNAL(clicked()), this, SLOT(checkLogin()));
To copy to clipboard, switch view to plain text mode 
then, I specified some tabordering
Qt Code:
  1. setTabOrder(usernameLine, passwordLine);
  2. setTabOrder(passwordLine, submitButton);
  3. setTabOrder(submitButton, cancelButton);
To copy to clipboard, switch view to plain text mode 
once the password is entered and I press tab, the submitButton is highlighted but pressing the return key on my mac does not trigger anything. If I click the button with the mouse, it works fine. I am using Qt 4.2.0-rc1.
Thanks for any help