This is something that came up as part of another problem that I was trying to solve.
My theory is that if a quadratic equation with integer coefficients has coefficients that are equal for the $x^2$ term and the $x$ term and has rational roots this will imply that the leading and second coefficient are square numbers, i.e.
If $a>0$ and $b$ are coprime integers and $ax^2+ax+b=0$ has rational roots, then $a$ is a perfect square.
I've tried looking at the discriminant and also subbing in $\frac{p}{q}$ and thought about taking mods but so far am a bit stuck.
Edit: as noted in comments, we must assume $a>0$, and $a$ and $b$ are coprime (otherwise we could multiply the quadratic by any non-square number to create counter examples).