[Interest] QTreeView and context menu
Graham.Labdon at avalonsciences.com
Thu Feb 27 09:09:46 CET 2014
I have developed a class derived from QAbstractItemModel and am using it to display data in a QTreeView.
I want to display a context menu when the user right clicks on an item in the tree. The contents of this menu are dependent on which item in the tree has bee clicked and the result of the click will result in an additional row being inserted into the model.
I would be grateful of some guidance of how to achieve this.
More information about the Interest