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.:

from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import Qt

import sys
application = QtGui.QApplication(sys.argv)

action = QtGui.QAction(None)
action.setShortcut(QtGui.QKeySequence(Qt.Key_Q))

Regards,
Miguel
_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to