c++ - Using different fonts/attributes in QTextEdit -


i have problem displaying text area different attributes.

my project has multi-threading build. reach gui text area using signal-slot mechanism. put texts text area this;

addrmw->ui->printerarea->appendplaintext(command.data); 

i want append text area different font, size, etc..

i'm using qt creator 2.7.2 / qt 5.1. explain me example?

what want rich text edit. luckily qtextedit able handle that. check acceptrichtext property (which should true default).

then methods you're looking are:

then, instead of appendplaintext() should use append() add text qtextedit. see q/a. proposed in accepted answer, can use html formatted text instead.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -