Quote Originally Posted by Zuzzu View Post
Hi,

I think that you don't have to extend the QTreeView class because it is already providing all you need.

On the QTreeView you can set the related delegates objects for the display (I can name "custom display") and editing the data.

In order to implement the "Excel" editing, you have to implement a custom Model that will be the storage and manager for your specific data.

It is not a so hard work, you have just to understand the correct way to implement the Model for your specific requirements. I have already constructed an editor based on the QTreeView that is able to manage a lot of kind of data. The configuration of my "editor" is based on a SQL storage with the mapping of database column to the grid column (or a subset of grid colum) with also the management of different unit of measures for the different data type. The Delegate for the editing are also created and assigned in automatically (by the class derived from the QTreeView).

Bye

Alessandro
Thanks for your reply. I have my own model. But problem that I can't give to user a possibility to change row height in QTreeView. I investigate in row delegate and I think it don't give me needed functionality. It uses for data editing in row, custom row painting by cells....