As far as I know you can just use them as keys; just a special keyboard. So listen to key events and handle them. There should be appropriate enum values in the Qt::Key enum, but you can just try by printing the int value of the key in the key event.