How to display multiple lines of text
-
wrote on 20 Jun 2011, 11:23 last edited by
in qml how to display multiple lines of text?i use TextEdit,but it doesn't work
-
wrote on 20 Jun 2011, 11:33 last edited by
@
wrapMode: TextEdit.WordWrap
@ -
wrote on 20 Jun 2011, 11:34 last edited by
Can you post an example of what you're trying to do?
-
wrote on 20 Jun 2011, 12:55 last edited by
i have used wrapMode: TextEdit.WordWrap,but it also can't work
,because the text is too long,so i want to use multiple lines to
display it! -
wrote on 20 Jun 2011, 13:04 last edited by
sfjam: I guess you'll have to clarify what you want a bit more, because in my experience, it just works. Could you show us the faulty code?
-
wrote on 20 Jun 2011, 16:31 last edited by
Make sure that your TextEdit has a fixed width (either, through the width: property or by setting anchors.) If it doesn't then the width of the component is dynamic and it doesn't know where or when to wrap.
-
wrote on 21 Jun 2011, 08:56 last edited by
[quote author="sfjam" date="1308568992"]in qml how to display multiple lines of text?i use TextEdit,but it doesn't work[/quote]
You say you use TextEdit to display multiple lines of text. Are you talking about displaying multiple lines of text or multi-line editor.
1/7