have two color of one word
QML and Qt Quick
5
Posts
2
Posters
1.1k
Views
1
Watching
-
wrote on 5 Apr 2015, 09:19 last edited by
I am looking for a way to change the first letter color of a single word, in other work I want to have one word with two different color.
What should I do in Text QML? -
wrote on 5 Apr 2015, 09:27 last edited by
I think you can use this:
Label { text: "<font color=\"blue\">H</font>ello" }
-
wrote on 5 Apr 2015, 09:38 last edited by
thanks for replying, but I have several columns and each of columns filled with several text, I created a TextField to prepare a search tool for user, when user type a letter in TextField I want the color of these letters that match is change.
-
wrote on 5 Apr 2015, 10:09 last edited by
I think you should use TextArea instead and listen to keyboard events and add formatted text (like in label) as you need
-
I think you can use this:
Label { text: "<font color=\"blue\">H</font>ello" }
wrote on 5 Apr 2015, 10:25 last edited by@Rem-Kolomna I did it, Thanks for your help
3/5