I would classify Q as a villian. It is evident through the ST:TNG encounters with him that he is at least Narcissistic, and if a a fair bit of insanity was tossed into the mix, there is the basis of an interesting story; keeping in mind that he (Q) was not very fond of humans and their exploits in space.