PDA

View Full Version : How we can set textcolor in a QTextTable.



rajeshclt3
16th November 2010, 11:10
Hi,

Please give some idea about setting text color for a QText Table entries.

I would like to give two different text color for 2 columns contents of QTextTable.How it is possible??

Thanks in advance.

high_flyer
16th November 2010, 11:22
QTextTableCell::format () gives you a QTextCharFormat on which you can call textOutline () which returns a QPen which you can set a QColor to.

rajeshclt3
16th November 2010, 13:49
Thanks for your suggestion.