Proof (Parseval's identity for orthogonal polynomials)
Fix $ε>0$.
The Stone-Weierstrass theorem implies that since $f\in C[a,b]$, there exists a polynomial $\hat p$ such that $$ \begin{align*} \|f - \hat p\|_\infty \equiv \sup_{[a,b]} |f - \hat p| < ε. \end{align*} $$ Let $n$ be the degree of $\hat p$. Then for all $N>n$, the least square approximant $p_N^\ast\in \mathcal{P}_N$ has error $$ \begin{align*} \|f-p_N^\ast\| \leq{}& \|f-p_n^\ast\| \\ \leq{}& \|f-\hat p\| \\ \leq{} & \int_{a}^{b} |f(x)-\hat p(x)|^2 w(x) \d x \\ \leq{} & \bigl(\sup_{[a,b]} |f-\hat p|\bigr)^2 \int_{a}^{b} w(x) \d x \\ \leq{} & ε^2 \underbrace{\int_{a}^{b} w(x) \d x}_{\text{const.}}. \end{align*} $$ Therefore using the error of the least square approximant, $$ \begin{align*} \sum_{k=0}^N \frac{\langle f,Q_k\rangle^2}{\|Q_k\|^2} = \|f\|^2 - \|f-p_N^\ast\|^2 \to \|f\|^2 \end{align*} $$ as $N\to \infty$.