Question: what is not quite right?
Answer: be not (quite) right in the head. informal. to not have one or more of the mental abilities that most people have.