[Interest] How to use QSGClipNode?
Nuno Santos
nunosantos at imaginando.pt
Tue Nov 4 18:52:34 CET 2014
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
More information about the Interest
mailing list