The problem is, you have to emit the signal headerDataChanged(...) if you re implement this function. Just before returning the QVariant() will do just fine.

http://doc.trolltech.com/4.1/qabstra...derDataChanged