I need help with setting the colour of a string to be green in the beginning and red at the end.
The problem right now is that spaces that occur between the two colours disapear.
The code looks like this:
Qt Code:
int i=0; while (i<input.size()&& i<answer.size() && input[i]==answer[i]) { temp=temp+input[i]; i++; } temp=temp+"</font><font color=\"#FF0000\">"+answermid(i)+"</font>";To copy to clipboard, switch view to plain text mode
Bookmarks