Hi Alan,
If the matrix Qc is not zero, in general, the constraints
lb <= x'*Qc*x + q'*x <= ub
are non-convex. Gurobi only supports convex quadratic constraints.
As you noted, the MATLAB interface only support quadratic constraints
of the form:
x'*Qc*x + q'*x <= beta,
with Qc positive semidefinite. This ensures convexity. The other
programming language interfaces do allow you to specify the sense of a
quadratic constraint, but the constraint must still be convex or be
able to be transformed into convex constraint.
I hope that answers your question.
Chris