The Q code is a standardized collection of three-letter message encodings, also known as a brevity code, all of which start with the letter "Q", initially developed for commercial radiotelegraph communication, and later adopted by other radio services, especially amateur radio. Although Q codes were created when radio used Morse code exclusively, they continued to be employed after the introduction of voice transmissions. To avoid confusion, transmitter call signs are restricted; while an embedded three-letter Q sequence may occur (for instance when requested by an amateur radio station dedicated to low-power operation), no country is ever issued an ITU prefix starting with "Q". The codes in the range QAA–QNZ are reserved for aeronautical use; QOA–QQZ for maritime use and QRA–QUZ for all services.
The original Q codes were created, circa 1909, by the British government as a "list of abbreviations... prepared for the use of British ships and coast stations licensed by the Postmaster General". The Q codes facilitated communication between maritime radio operators speaking different languages, so they were soon adopted internationally. A total of forty-five Q codes appeared in the "List of Abbreviations to be used in Radio Communications", which was included in the Service Regulations affixed to the Third International Radiotelegraph Convention in London (The Convention was signed on July 5, 1912, and became effective July 1, 1913.)
More information, including lists of examples, on the Wikipedia page