With reduced QR $A=QR$ and full column rank, solve the triangular system $R\hat x=Q^*b$. With rank deficiency, SVD gives the minimum-norm solution $\hat x=A^+b$ and all minimizers are $A^+b+\ker A$. Singular-value thresholds in floating-point arithmetic must reflect data and rounding-error scale.