Found the problem!
I inherit from QAbstractTableModel using it with a treeView as well. BUT the QAbstractTableModel overrides hasChildren() and sets NeverHasChild flags for indices for performance.
I need to inherit from QAbstractItemModel.
Small thing - big repercussion.