[Interest] How to use QSGClipNode?
Gunnar Sletta
gunnar at sletta.org
Wed Nov 5 18:33:37 CET 2014
A clip node will clip its children, not its siblings :)
cheers,
Gunnar
On 04 Nov 2014, at 18:52, Nuno Santos <nunosantos at imaginando.pt> wrote:
> 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list