How to have a rounded background in qml TextEdit
Unsolved
QML and Qt Quick
-
I'm trying to have a rounded background in qml TextEdit. To something like this:
I tried this:
TextEdit{ id: text textFormat: TextEdit.RichText text: "<span style=\"color:blue;font-weight:bold;background-color:grey;border-radius:20px\">blue</span>" }
but the border-radius attibute doesn't work. What should I do?
-
@sierdzio sorry I can't use this method because I'm dealing with a "highlighting" problem. Like this:
the highlighted content is selected by user. and there're a lot of different color schemes for words to be hovered, selected, deleted and so on. -
@isudfv Ah I see. Then you should do this with QTextDocument. It does support full formatting, pictures, selection etc. while maintaining very good performance.
-