QSGClipNode doesn`t clip any child item from qml built-in items like Rectangle
-
Hi
I am newbie Qt developer and I dont know how exactly QtQuick scene graph works. my question is that I created a node tree for rendering and I have my custom geometry node with custom fragment and vertex shader. when a QSGClipNode used in this node tree this will clip node tree items and has no any affect on child items that added on QML.
consider:
CustomItem{ width:100; height:100; Rectangle{ width:200 height:200 } }
and in this example by QSGClipNode expected Rectangle be clipped but is not. Why? -
Hi,
While I think I get what your issue is, I think it would be better if you'd provide a minimal compilable example that shows what it happening.
-
Hi,
sure here is my example code.
https://github.com/neji78/QSGClipNodeExample.git
thank you @SGaist
-
Which version of Qt are you using ?
Your code does not build with Qt 6.7. -
Would it be possible to have a picture of what you are getting and what you are expecting to get ?