Qt 5.15
Qt QML
QML Example - Dynamic Scene
Qt 5.15.15 Reference Documentation
QML Example - Dynamic Scene
This example demonstrates creating components dynamically.
Example project @ code.qt.io