I have a little problem with my treeView. I try to delete a shape by my own context menu. It works well. I click on the item in the treeview, the contextmenu appear and I click on "Delete", so the shape disappear from the visualization and the name is clean from the treeView. But the row doesn't disappear. So I have an empty row in my treeView. I try to delete the shape with the following code:
Handle(XCAFDoc_ShapeTool) aShapeTool = XCAFDoc_DocumentTool::ShapeTool (this->mainXcafDocument->Main());
QModelIndex index = ui->treeView_entityBrowser->currentIndex();
TDF_Label label = deleteTreeItem(this->mainXcafDocument->Main().Root().FindChild(1), index);
Furthermore I recognized that the number of my shapes in the this->mainXcafDocument->Main().Root() is not reduced after the RemoveShape-Command.