working with editable tree model in the examples
I want to disable certain branches when the user selects certain options in the interface.

Should this be done by setting the flags of the parent of a branch to disable, using Qt::ItemIsEnabled?

How can I do that?
thanks