How can I prove that the additive group of rationals is not isomorphic to a direct product of two nontrivial groups?

The endomorphism ring of a direct product is never a domain, yet the endomorphism ring of ℚ is a field.