Hello
how can i set multiple colors inside Qlabel text?
for example:
QLabel ql;
ql->setText("Hello World!");
i want that the "Hello" will be in blue, the "World" in red & the "!" in green
it is possible?
thanks in advance,
Gal
Hello
how can i set multiple colors inside Qlabel text?
for example:
QLabel ql;
ql->setText("Hello World!");
i want that the "Hello" will be in blue, the "World" in red & the "!" in green
it is possible?
thanks in advance,
Gal
Qt Code:
ql->setText("<font color=\"blue\">Hello</font> <font color=\"red\">World</font><font color=\"green">!</font>");To copy to clipboard, switch view to plain text mode
Bookmarks