Qt Grid View
Qt Widgets
Score 52%
Description:

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.
Last changelog:

6 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

6 years ago

Nice I love it, maybe English would be
more appreciated .

PS:
magyarul csak? :D

Report

C

krumplee

6 years ago

This is just for demo purposes.
Feel free to edit the text :)
Source code comments are English.

Report

6 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

product-maker symbianflo Oct 11 2011

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.4
updated Oct 24 2011
added Oct 11 2011
downloads today
0
page views today 3