PDA

View Full Version : QTableView header in corner



danstr
17th May 2006, 21:55
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.

wysota
18th May 2006, 11:07
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.

danstr
18th May 2006, 19:44
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.

wysota
18th May 2006, 20:16
The header view uses regular palette colour roles, so you can use them to achieve the same look.