[solved] QPlainTextEdit HTML question
General and Desktop
3
Posts
2
Posters
948
Views
2
Watching
-
wrote on 13 Jun 2015, 05:35 last edited by deleted28
Hello,
what is bad in the 3rd line ?
(or is it simply not supported)plainTextEdit->appendHtml("<font color = \"red\"> Sample red Text</font>"); plainTextEdit->appendHtml("<font color = \"#ff0000\"> Sample red Text</font>"); plainTextEdit->appendHtml("<font color = \"rgb(255,0,0)\"> Sample red Text</font>");
OUTPUT:
red text
red text
black text -
Hello,
what is bad in the 3rd line ?
(or is it simply not supported)plainTextEdit->appendHtml("<font color = \"red\"> Sample red Text</font>"); plainTextEdit->appendHtml("<font color = \"#ff0000\"> Sample red Text</font>"); plainTextEdit->appendHtml("<font color = \"rgb(255,0,0)\"> Sample red Text</font>");
OUTPUT:
red text
red text
black text@wally123 Yes it is not supported. Supported formats are the first 2 which you have used. Its documented here.
-
wrote on 13 Jun 2015, 06:22 last edited by
Thank you
3/3