Add a way to use a custom modelview-projection matrix


Using a new QCRhiPaintDriver overload. This involves a different
vertex shader variant (not building it into the default one, since
we do not want to spend any time on custom matrix related operations
when a matrix was not set), that multiplies the vertex with the
matrix and that's that.

Key use case: a QSGRenderNode implementation, that would pass Qt Quick's
mvp, calculated as *projectionMatrix() * *matrix() in the prepare()
overload of the QSGRenderNode subclass. The matrix happens to be
suitable to transform the QCPainter vertex values as-is.

Pick-to: 6.11
Change-Id: I19259a02906f938748a4aee83e353a2069237d1f
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit33bf1e1f26d794b6a607e62072ca615bdc1dfdd9
parentd78fd0f89083dceb5e07ad36298d7c229977712f
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 27 Jan 2026 11:45:51 +0100