Here is a comment relating the question to representations of sums of five squares of rational polynomials (sorry, too long for the comment field):
Suppose that $f$ is a linear combination of two squares of polynomials, i.e., $f=u^2-rv^2$ for some $r\in \mathbb{Q}$,
and $u,v\in \mathbb{Q}[x]$. If $r\le 0$, then $f$ need to be nonnegative. As $-r$ is the sum of four rational squares, we can write $f$ as the sum of five squares of rational polynomials. Conversely, if $f$ is nonnegative, then it is known that $f$ can be written as the sum of five squares of rational polynomials, $f=u_1^2+\cdots +u_5^2$. This is due to Pourchet, 1971,
"Sur la représentation en somme de carrés des polynômes à une indéterminée sur un corps de nombres alge ́briques". This result is best possible as far as the number of squares needed for such representations is concerned.
Edit: The result of Pourchet does not imply that $f$ may not be a linear combination of two squares of rational polynomials.
Consider the example $f(x)=x^2+x+4$. Since $4ac-b^2=15$ cannot be represented as a sum of three rational squares, the polynomial $f$ cannot be represented as the sum of squares of $4$ rational polynomials.
However,
$$
f(x)=x^2+x+4=\left( \\frac{x-7}{4}\right)^2+\frac{15}{16}(x+1)^2.
$$
If $r>0$, then $f$ must be reducible over $\mathbb{R}$, as $f=(u-\sqrt{r}v)(u+\sqrt{r}v)$ (see the comment of i707107).