QSGGeometry node children of a QSGNode root parent are not drawing in QQuickItem



  • I have a root QSGNode* that is returned from updatePaintNode. In that function, I use appendChildNode() to add several geometry nodes. The QSGNode itself has not geometry attached, only children, which have geometry and materials.

    I have previously got things to draw by returning a single QSGGeometryNode fine, but I have several different objects I want to draw in the same class and it is my understanding that the scenegraph will draw all children of the node you return.

    Using childCount() I confirm the children exist. I can log to console their vertex data. They should draw. But nothing happens.

    itemHasContents is set; is there something else that must be done to make children nodes render in the scene graph?


Log in to reply
 

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