[PyQt] Re: Global Shorcuts

Wolfgang Rohdewald wolfgang at rohdewald.de
Wed Nov 4 07:42:17 GMT 2009


On Wednesday 04 November 2009, Manuel Enrique wrote:
> How can I set a global shorcut for my app? 

look up setShortcutContext in the docu:

res = KAction(self)
# should also work with QAction, I suppose
res.setShortcut( Qt.CTRL + shortcut)
res.setShortcutContext(Qt.ApplicationShortcut)


-- 
Wolfgang


More information about the PyQt mailing list