And if i understand you cant change item colors?
I think you must subclass QListViewItem and play with reimplementing paintBrushes() or paintCell()
![]()
And if i understand you cant change item colors?
I think you must subclass QListViewItem and play with reimplementing paintBrushes() or paintCell()
![]()
a life without programming is like an empty bottle![]()
Thanks for the reply,
I reimplemented paintcell as shown below and it works fine
void QCexItem:aintCell( QPainter * p, const QColorGroup &cg,
int column, int width, int align)
{
const QBrush brush(Qt::lightgray);
p->fillRect(0,0, width, height(), brush);
Q3ListViewItem:aintCell( p, cg, column, width, align );
return;
}
but if i want to change the color of the text in the Q3ListVuewItem, i cannot do it ,
If you have any suggestions please do reply,
bye,
sree
Bookmarks