[Interest] How to use QSGClipNode?
Nuno Santos
nunosantos at imaginando.pt
Thu Nov 6 13:15:11 CET 2014
Ops! :) Of course!
Thanks,
Nuno
On 05 Nov 2014, at 17:33, Gunnar Sletta <gunnar at sletta.org> wrote:
> 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