Hi,

I was wondering how I could use QSGClipNode to clip what is being drawn out of 
a node rect.

I’m trying to instantiate a QSGClipNode on the node I want to clip.

_clipNode = new QSGClipNode();
appendChildNode(_clipNode);

I have tried to append it after and before other nodes, but the result is the 
same, no clipping. 

I’m only setting geometry when I have the geometry for the node itself however 
documentation says "Clip nodes must have a geometry before they can be added to 
the scene graph.”

Any ideas?

Thanks,

Regards,

Nuno Santos
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to