This is the Qt Example for a "Simple Tree Model" but converted to using a QML TreeView instead of a QTreeView widget. It is using a QAbstractItemModel to represent the tree model.
It seems that it is a compilation problem of qt4.8.7(not mxe) on my computer, but I can't see issues at the repository of qt. Look like mistake of ui_*.h generated by uic4.8.7.( as log below: ...
Maybe I'm missing it somewhere, but I can't seem to find how to add a widget to an existing layout once it's set.<BR><BR>In the most basic example, I tried adding a widget when a button was pressed.