Custom TreeModel updates

I have implemented a custom TreeModel backed by our own tree. It’s unclear to me how to hook up updates to the TreeModel side when our tree is modified. I see the signals for row_changed, row_deleted, etc but those seem to be from the opposite side. That is, from the TreeModel side.

Hello, welcome!

Typically, the TreeModel implementations are in charge of emitting the signals and the TreeModel users connect a callback to those signals.

See Chapter 11 from this link: http://scentric.net/tutorial/treeview-tutorial.html

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.