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