The statement is true.
I'm assuming that $Q$ is linear. The following polarization identity is key to the proof that it is true:
Let $x$, $y \in X$ then
$\langle Qx,y\rangle=\frac{\langle Q(x+y),x+y\rangle-\langle Q(x-y),x-y\rangle}{4} +i\frac{\langle Q(x+iy),x+iy\rangle-\langle Q(x-iy),x-iy\rangle}{4}$.
Do you know how to finish from there?
To demonstrate that your idea was incorrect let $X=\mathbb{C}^2$ and let $Q = \left[\begin{smallmatrix} 0 & -1 \\ 1 & 0\end{smallmatrix} \right]$ be the rotation by $90$ degrees. Recall that $\mathbb{C}^2$ is an inner product space with the inner product given by $\left = \bar{x}^{T}y$
Take, e.g., $x=\left[\begin{smallmatrix} 1+i\\ 1-i\end{smallmatrix} \right]$ then
$$Qx = \left[\begin{smallmatrix} i-1\\ i+1\end{smallmatrix} \right]$$ and so
$$ \left = [-1-i, 1-i] \left[\begin{smallmatrix} 1+i\\ 1-i\end{smallmatrix} \right]=-4i.$$
Your idea with the rotation would be correct if $X$ was a real inner product space.