Change editortrigger using subjectHierarchyItemFlags()

Operating system: windows 10
Slicer version:5.6.1 r32438 / 117ce5f
Expected behavior:
Actual behavior:
I have only qMRMLSubjectHierarchyTreeView( not a widget) I have to change edit enable for some rows , leaving other no editable.
I know I have to set flag something like this:
caliper_row.setFlags(caliper_row.flags() | qt.ItemIsEditable), if I would have widget. But in my case, I probably have to use ui.caliper_subject_hierarchy.model().qMRMLSubjectHierarchyTreeView but :1) it did not recognize this function 2) how to set flag in it. If somebody have example, it will help.