Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to display multiple lines of text

How to display multiple lines of text

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 6 Posters 13.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sfjam
    wrote on last edited by
    #1

    in qml how to display multiple lines of text?i use TextEdit,but it doesn't work

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kkrzewniak
      wrote on last edited by
      #2

      @
      wrapMode: TextEdit.WordWrap
      @

      Me, Grimlock, not "nice dino". ME BASH BRAINS!

      1 Reply Last reply
      0
      • N Offline
        N Offline
        njeisecke
        wrote on last edited by
        #3

        Can you post an example of what you're trying to do?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sfjam
          wrote on last edited by
          #4

          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!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mlong
              wrote on last edited by
              #6

              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.

              Software Engineer
              My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                thisisbhaskar
                wrote on last edited by
                #7

                [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 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved