Multiple meshes or different colored vertex sets on a single QQuickItem?

  • Is it possible to have more than one draw call for a QQuickItem subclass? It seems to only support one QSGGeometry instance, which suggests it cannot. For example, suppose I am drawing a multi-colored chart in QQuickItem's updatePaintNode, how would I do this if it only supports one set of vertices?

  • The QSGNode that you create in updatePaintNode() may have as many children (with their own geometries) as you'd like.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.