
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is the very first version of my custom header+table view and a custom model where spanning of columns and rows can be specified. These are not really a hierarchical views. You can freely span rows and columns. I am using these views in my project to display items in a compact way. When spanning many columns and/or rows it is much faster that Qt's native QTableView, but not as flexibile yet. I have used some ideas from Krasnoshchekov Petrs HierarchicalHeaderView. Also used Qt own source code to see how to do subclassing views and models. The code of the first version is not so clean and may contain bugs. Excuse me for this. Future releases will be cleaned up and will have more improvements.
9 years ago
Version 0.2 is simplified and the code is cleaned. Also fixed the problem where the built in editor (line edit) was not correctly positioned during editing. In the next release items will be selectable.
Version 0.3: Items can be selected in the table. Also it can have focus and you can see the signs of hovering when pointing the cursor over a cell. For demonstration purposes I have added a QTableWidget. Maximize the window and try resize the header sections on both tables. QTableWidget is much slower even if I set less column/row spans in it.
Version 0.4: Header items are now drawn by delegates. You can draw your own header item. Also they can be clicked/checked. Fixed keyboard navigation in the table by re-implementing moveCursor. My plain is to merge Hierarchical Header View project and make headers expandable/collapsible like http://www.devexpress.com/Products/NET/Controls/WinForms/Pivot_Grid/i/features/hierarchy-custominterval.png
9 years ago
Version 0.2 is simplified and the code is cleaned. Also fixed the problem where the built in editor (line edit) was not correctly positioned during editing. In the next release items will be selectable.
Version 0.3: Items can be selected in the table. Also it can have focus and you can see the signs of hovering when pointing the cursor over a cell. For demonstration purposes I have added a QTableWidget. Maximize the window and try resize the header sections on both tables. QTableWidget is much slower even if I set less column/row spans in it.
Version 0.4: Header items are now drawn by delegates. You can draw your own header item. Also they can be clicked/checked. Fixed keyboard navigation in the table by re-implementing moveCursor. My plain is to merge Hierarchical Header View project and make headers expandable/collapsible like http://www.devexpress.com/Products/NET/Controls/WinForms/Pivot_Grid/i/features/hierarchy-custominterval.png
symbianflo
9 years ago
more appreciated .
PS:
magyarul csak? :D
Report
krumplee
9 years ago
Feel free to edit the text :)
Source code comments are English.
Report