Hint $\ $ It follows from the uniqueness of the quotient (and remainder) in the division algorithm (which persist from $\,\Bbb R[x]\,$ up to $\,\Bbb C[x],\,$ using the polynomial degree as the Euclidean "size").
Namely, since dividing $\,P\,$ by $\,Q\,$ in $\,\Bbb C[x]\,$ leaves remainder $\,0,\,$ by uniqueness, the remainder must also be $\,0\,$ in $\,\Bbb R[x].\,$ Thus $\ Q\mid P\, $ in $\,\Bbb C[x]\ $ $\Rightarrow$ $\ Q\ |\ P\ $ in $\,\Bbb R[x].\,$ In more detail
$$\begin{align}
[\![1]\!]\ \ {\rm in}\ \Bbb C[x]\!:\,\ P\div Q\ \rightarrow\ &P =\color{#0a0} AQ\, +\, \color{#c00} 0,\ \ \ A \in \Bbb C[x]\\[.4em]
[\![2]\!]\ \ {\rm in}\ \Bbb R[x]\!:\,\ P\div Q\ \rightarrow\ &P = \color{#0a0}BQ +\color{#c00} R,\ \ B,R \in \Bbb R[x],\ \deg{R} < \deg Q\end{align}$$
The equality and degree bound in $[\![2]\!]$ remain true in the extension ring $\Bbb C[x]\,$ so uniqueness of quotient & remainder in $\Bbb C[x]\,$ $\Rightarrow \color{#0a0}{A = B}\in \Bbb R[x],\ \color{#c00}{R= 0},\,$ so $\,Q\mid P\ \ \color{#0af}{{\rm in}\ \ \Bbb R[x]}$.
This is but one of many examples of the power of uniqueness theorems for proving equalities.
Remark $\ $ More generally, $ $ it follows from persistence of Euclidean gcds in extension domains since, by Bezout, the gcd may be specified (up to unit factor) via the solvability of a system of (linear) equations over $D,\,$ and such solutions persist in extension domains of $D,\,$ i.e. roots in $D\,$ persist as roots in $E\supset D.\,$ Note $\, Q\nmid P\,$ in $\,\Bbb R[x]\,$ iff their gcd $\,(Q,P) = AQ+BP\:$ has smaller degree than $\,Q.\,$ If so, the Bezout equation persists as a witness that $\,Q\nmid P\,$ in $\,\Bbb C[x]$.
Such uniqueness is a characteristic property of polynomial domains over fields. Namely, if $D$ is a Euclidean domain with division algorithm having unique quotient and remainder, then either $D$ is a field or $D = F[x]$ for a field $F.\,$ For proofs see e.g.
M. A. Jodeit, Uniqueness in the division algorithm, Amer. Math. Monthly 74 (1967), 835-836.
T. S. Rhai, A characterization of polynomial domains over a field, Amer. Math. Monthly 69 (1962), 984-986.