Customizing the Model Tree

Hi,
how can i add items to model trees or create a new tree for the model tree panel?

In the examples i can only find approaches for customizing the command panel, menu and the toolbar.

Hi Norbert_Hofbauer,

We don’t currently have SDK support for modifying the model tree. We have recently refactored the Model tree and it will be easier support SDK modifications in the new tree. I will add this into our development backlog.

Thanks,
Karl

Hello Karl,

i have now implemented my own QDock with a Tree and i am able to catch events like the double click on an item in the tree.

But i dont now how i can navigate to my wished command in the command panel.
I want the same functionality as when i click “create new material” in the context menu from the materials tree and the right widget in the command panel shows up.

Could you please give me some input.

I finally found a solution.

I had to get the NavigationNode from the NavigationModel for my marker to get the QIndex and then dynamic_cast<CommandButtonPanel*> TaskPanel to can set the current button.

1 Like