This should be just a comment (I don't have enough points). Using Jensen's inequality, with the equality case, you obtain that $\log \frac{dQ}{dP}$ must be constant a.e., so equal to $0$ a.e.