SetBackground and setForeGround not working in QTableWidgetItem
- by liaK
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);
…