Hi everyone,
I've got a really simple main window with a few (QPushButton) buttons.
What I want to do, is no matter what button has focus, hitting Enter
will hit the default button. Rather than connecting a signal on every
button to the default button's slot, I've decided to setup a hot key,
On Thu, 14 Apr 2005 16:05:07, Alfred Young wrote:
self.shortcutKey = QAccel(self)
id = self.shortcutKey.insertItem(Qt.Key_Enter)
self.shortcutKey.connectItem(id, self.defaultButton,
SLOT(self.defaultButton.clicked()))
However as soon as I invoke connectItem() it appears that the