No matter, I've just discovered that the proper way to solve this problem is to create the QApplication before calling QAction.setShortcut e.g.:<br><br>from PyQt4 import QtCore, QtGui<br>from PyQt4.QtCore import Qt<br>
<br>import sys<br>application = QtGui.QApplication(sys.argv)<br><br>action = QtGui.QAction(None)<br>action.setShortcut(QtGui.QKeySequence(Qt.Key_Q))<br><br>Regards,<br>Miguel<br><br>