PDA

View Full Version : How to implement delegate in QHeaderView



riarioriu3
10th August 2012, 05:14
I have created one table by using QTableview and QAbstractTableModel . i have added some vertical header by using QHeaderView . In one of the header cell i want to use delegate ..

I am using the delegate but it does not have any impact ..

Is anywhere i am doing wrong ?

spirit
10th August 2012, 06:23
Docs say


Note: Each header renders the data for each section itself, and does not rely on a delegate. As a result, calling a header's setItemDelegate() function will have no effect.

Appearance (http://qt-project.org/doc/qt-4.8/qheaderview.html#details).