SetBackground and setForeGround not working in QTableWidgetItem

Posted by liaK on Stack Overflow See other posts from Stack Overflow or by liaK
Published on 2010-01-29T14:27:48Z Indexed on 2010/05/28 19:02 UTC
Read the original article Hit count: 397

Filed under:

Hi I am using QTableWidget and QTableWidgetItem to populate QTableWidget. When i try to set the background and foreground for QTableWidgetItem, it's not displaying the set background and foreground colors. I am using Qt4.4 . My code looks like this

lcurrentTableWidgetItem->setForeground(Qt::blue); lcurrentTableWidgetItem->setBackground(Qt::gray);

Someone can help me with this.

© Stack Overflow or respective owner

Related posts about qt4