[Qt-interest] Coloring a header

SALOMEHER at terra.es SALOMEHER at terra.es
Tue Mar 23 13:51:20 CET 2010


Hi,

I have a 
QAbstractTableModel and I have reimplemented some of its functions 
including:
   data 
(const QModelIndex & index, int role) and headerData (int section, 
Qt:: Orientation orientation, int role)
But I can not color the background of a header, ie data ()
 if I can use role == Qt:: BackgroundRole and assign a color, but this 
role does not work headerData.

Is it possible to color a header?

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100323/0dea6f7b/attachment.html 


More information about the Qt-interest-old mailing list