[PyQt] Tab key shortcut no more working ?

kib2 kib2 at free.fr
Fri Jun 27 13:27:37 BST 2008


Hi,

I've got a problem with an old app.
This was supposed to work with PyQt 4.2 (only Tab key):

keyTab = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Tab")), self)
self.connect(keyTab, QtCore.SIGNAL("activated()"), self.on_tab)

but now, it just does not work under PyQt4.4.

This one works (Ctrl+Tab):

keyTab = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Ctrl+Tab")), self)
self.connect(keyTab, QtCore.SIGNAL("activated()"), self.on_tab)

So, how do I set a shortcut to the "Tab" key ?
Thanks,

Christophe K.



More information about the PyQt mailing list