Unsolved Visual Parent vs Object Parent in QML
-
Hi All,
I came across visual parent from some blog, but not able to get a good understanding of it.Can someone please help me understand the concept. (some good link or some basic example of it use-case)
Thanks in advance!
-
Use the official Qt docs:
Visual Parent
https://doc.qt.io/qt-5/qtquick-visualcanvas-visualparent.html#visual-parent
Also this
https://doc.qt.io/qt-5/qtquick-visualcanvas-topic.html#visual-parentHere is an example of visual (render) parent + childs.
(Have a look at the item coordinate systems)
https://doc.qt.io/qt-5/qtquick-visualcanvas-coordinates.html#worked-exampleSee:
QObject
tree
https://doc.qt.io/qt-5/qobject.html