PDA

View Full Version : Change the colour of a QT TextEdit row



Splatify
3rd March 2011, 13:33
Hi all i wish to change the colour of a particular row within a text edit.

In each row there is a field which is marked either as completed (Yes) or not completed (No). If the record is marked as not complete I wish for the row to be colour red. If the row is marked as complete I want the row to coloured green.

Thanks for your time and trouble, btw I have no idea where to start.

Thanks

high_flyer
3rd March 2011, 13:42
Have a look at QSyntaxHighlighter.

Splatify
3rd March 2011, 14:00
Could you perhaps give me an example of how to do this. Thanks

high_flyer
3rd March 2011, 14:09
How is my example better then the ones in the link I gave you?