I want to implement a tree view like the visual studio solution explorer with Qt. The tree is used to represent an external data called "project". I want to use Qt model/view architecture.
(1) QTreeView for the view, and the model is derived from QAbstractItemModel which include a pointer pointing to the project object. (2) The items under a directory are sorted by its name. When adding an item under a directory, it will automatically be put on the right position. (3) When double clicking an item in the tree, a dialog will pop up for editing.
Any good ways to implement the (2) and (3). Thanks a lot!