PDA

View Full Version : QHeaderView as a banner



mclark
21st March 2007, 15:38
Greetings,

My program (using 4.2.2) uses a pair of QTableWidget objects to display my data. I would like to add a horizontal banner above the normal horizontal QHeaderView row provided by my QTableWidget (kind of a stacked horizontal QHeaderView). This banner would help to partition the cells of the QTableWidget into discrete sections.

After searching the help files and this forum it appears that I must switch to QTableView in order to add another QHeaderView row to my table. Is this correct or is there a way to add a banner using QTableWidget?

Thanks for considering this question.

Jimmy2775
21st March 2007, 19:28
QTableWidget extends QTableView, so there's no reason why you can't use either one for this.