I'm creating a music player app with PyQT and I've defined a couple them as toolbar buttons. I can easily set the shortcut with setShortcut, but how can I set them to the OS X Media Keys? I already have iTunes disabled on launch so that's no problem. The music player Clementine has them also working when the application is not in focus, how can I have "global" hotkeys?
Many thanks!
Dennis