PDA

View Full Version : Change text color in QTableWidgetItem



npascual
10th May 2011, 17:03
Hello,

how can I change de color of the text in a QTableWidgetItem?

In the Qt SpreadSheet example, if you have a negative number in the table appears red. If you put a decimal number it appears black. if the number is integer it appears blue... Is it automatic? Is there any way to change it manually? I want all the elements are in black.

Thank you very much!!!