I need a fully working sample of
class MyReadOnlyTreeModel : public QAbstractItemModel

where the content is changed at run time by a worker thread.

thanks.