horizontal header over two rows in tablewidget
I like to have a horizontal header in a qTableWidget that looks like the following example (header over two rows):
-------------------------------------------------------
Amount
-------------------------------------------------------
1.00 | 2.25 | 4.00 | 5.25 | 8.00 | 13.00 | 15.00
-------------------------------------------------------
How can I do that?
I am working with QT4.3.0!
Thanks for any help.
Nippler
Re: horizontal header over two rows in tablewidget
If it's the last header column, you should be able to use the header's stretchLastSection option. Something like:
Code:
tableWidget->horizontalHeader()->setStretchLastSection(true);
Re: horizontal header over two rows in tablewidget
Thanks for the answer but that isn't what I want. This stretches only the last section horizontally. What I want is a describing header over the real header per column like the example in my thread...