\(\text{Với }m\ne-1\\ HPT\Leftrightarrow\left\{{}\begin{matrix}mx+y=m^2+3\\y=x+4\end{matrix}\right.\\ \Leftrightarrow mx+x+4=m^2+3\\ \Leftrightarrow x\left(m+1\right)=m^2-1\\ \Leftrightarrow x=\dfrac{\left(m-1\right)\left(m+1\right)}{m+1}=m-1\\ \Leftrightarrow y=x+4=m+3\)
\(\Leftrightarrow\left(x;y\right)=\left(m-1;m+3\right)\left(đpcm\right)\)
\(\Leftrightarrow Q=x^2-2y+10\\ \Leftrightarrow Q=\left(m-1\right)^2-2\left(m+3\right)+10\\ \Leftrightarrow Q=m^2-2m+1-2m-6+10\\ \Leftrightarrow Q=m^2-4m+5=\left(m-2\right)^2+1\ge1\)
Dấu \("="\Leftrightarrow m=2\Leftrightarrow\left\{{}\begin{matrix}x=1\\y=5\end{matrix}\right.\)
Vậy \(Q_{min}=1\)