hi,
can anyone guide me , in changing the background color for a required entire row in a table widget?
Thanks in advance
@qtlinuxnewbie
hi,
can anyone guide me , in changing the background color for a required entire row in a table widget?
Thanks in advance
@qtlinuxnewbie
Each Item is an instance of QTableWidgetItem. Hence you can apply the color for instance of QTableWidgetItem using void setBackground ( const QBrush & brush ). and set this item to appropriate column.
best to look at this example
http://qt.nokia.com/doc/4.5/itemviews-frozencolumn.html
"Behind every great fortune lies a crime" - Balzac
@QTableWidgetItem *ValueItem;
ValueItem->setBackgroundColor(QColor(Qt::red));
hope this helps for any one.
@qtlinuxnewbie.
Learn about Style Sheets: http://doc.trolltech.com/4.6/stylesheet.html
Bookmarks