Hi ,
I'm trying to find a way to insert a header item in the top left corner of a QTableView with both vertical and horizontal headers.
Is there a way to do that ?
I'm using Qt4.1.1 on windows.
Printable View
Hi ,
I'm trying to find a way to insert a header item in the top left corner of a QTableView with both vertical and horizontal headers.
Is there a way to do that ?
I'm using Qt4.1.1 on windows.
Looks like the only way is to subclass QTableView and put the additional header widget in the corner yourself. Alternatively you might try just to insert it into the tableview layout, without subclassing. Anyway both of these approaches require reading the class source code.
Thanks I will try that .
Is there a way to ensure the same color and border look as the header ?
Maybe I could put a push botton of the right size and look there.
The header view uses regular palette colour roles, so you can use them to achieve the same look.