QTreeWidget header column merging

127 Views Asked by At

I've a QTreeWidget. I need to create the following system of columns.

▼ Record N1
Col1 Col2 Col3 Col4
------ ------ ------ ------
------ ------ ------ ------
▼ Record N2
Col1 Col2 Col3 Col4
------ ------ ------ ------
------ ------ ------ ------

But i can't understand how to merge columns above subcolumns to achieve one line with Record N1, Record N2 etc. I thought to add a table widget in every Record instead of subitems like Col1, Col2 etc. But i don't want to overweight the code with creating this bundle. Is it possible to achieve the same result but with treewidget only?

The main point: create a QTreeWidget with one column with lot of subcolumns, like table, in this main column. In addition, i want to use literally QTreeWidget because it's expandable raws.

0

There are 0 best solutions below