Text color in QTableView

1

Hello, I am trying to implement the color of the text in certain column of my QTableView, without success

To paint the cell, just use the code below in my working delegate:

painter->fillRect(option.rect, QColor(255, 40, 0));

To change the color of the text it was trying:

painter->setPen(Qt::red);

But it did not work.

Could someone give me a hand?

Thank you, Julian.

    
asked by anonymous 02.01.2017 / 20:59

0 answers