Qt Grid View

Qt Widgets

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.7

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:

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


Ratings & Comments

2 Comments

symbianflo

Nice I love it, maybe English would be more appreciated . PS: magyarul csak? :D

krumplee

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

Pling
0 Affiliates
Details
license
version 0.4
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 8 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 8 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1