'Q' in the James Bond movies was a guy who ran the new tech weapons division. They had a guy who was coded 'M' and 'N' and such.
Q was the guy that designed the weapons on the James Bond cars, the shoe heel that came off and had a weapon inside it, exploding briefcase, etc…