I first thought I would be using QML to create the GUI but then I find it easier to test and build things step by step in Lua.
In your article, you are using the constructors inside the table and not just their name. Why not use names and "execute" the view with for loops (or recursively by passing the table in the constructor) :