I feel like I'm missing something really obvious, but is it possible to disable expansion of a particular QStandardItem within a QTreeView when it has children? My model has 4 root items uniquely subclassed from QStandardItem, each with a set of children of unknown quantity, but I only want two of them to actually show their children. Is this possible?

I think QTreeWidgetItem::ChildIndicatorPolicy is a convenience function that does something like this, but I can't see anything similar in QStandardItem. Where in QStandardItem's implementation does it control the display of its children?

In case it's relevant, I'm displaying them in a QTreeView.