See Qt::Key for the list of keyboard codes. These codes are independent of the underlying window system. A value of either 0 or Qt::Key_unknown means that the event is not the result of a known key; for example, it may be the result of a compose sequence, a keyboard macro, or due to key event compr...