This is the code sample that was used in our Qt World Summit 2015 talk Using the Qt Quick Scene Graph API.
This code runs with Qt 5.5 but the presentation was using two performance patches from Qt 5.6 that were backported locally:
Avoid recreating QVariantLists when extracted from a QVariant