QTABLEWIDGET WITH STYEL
-
I want to make such a widget using QTABLEVIEW.How to do it?Or I need to use other tools?
thx -
Hi,
Do you mean the custom widgets between the headers and the cells ?
-
yes,should I use QTREEVIEW?
-
No, you should use a technique similar to the Frozen column example but applied on row and using your custom widget.
-
but the data of the tableview can expand or shrink.I have no idea how to realize it. I find QTREEVIEW can do it but the top level of the tree data is still a node and cannot fill the whole line
-
Then can you please explain exactly what the UI does ?
Because from the looks of it you have some custom widget between the header and the table data however from what you wrote it seems to be indeed closer to a tree view with the top level items having some custom design or maybe just some custom view that is supposed to show a table for each of its elements.
-
I think it is more closer to a treeview with the top level fill the whole row
-
Then I would say my suggestion still applies.