The "«item»" item to SolverInfo requires a quadratic program.
The "Q" item to SolverInfo requires a quadratic program.
The Q matrix encodes the quadratic coefficients of a quadratic program, and does not exist in the definition of a linear or non-linear program. Similarly for LhsQ -- the quadratric coefficients of the constraints. You've asked for the quadratic matrix of coefficients for something other than a quadratic program -- either an LP or NLP, hence the error message.