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. Two line elided Text

Two line elided Text

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 4.9k 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.
  • B Offline
    B Offline
    bunjee
    wrote on last edited by
    #1

    Greetings Trolls,

    I'm using a QML Text component + "Text.ElideRight" and it's working fine.

    But when I'm having a string like "Hello\nWorld" I can't seem to keep the "ElideRight" together with the line skip.

    Has anyone got a trick for a "two line elided" QML Text ?

    Thanks.

    B.A.

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      looks like a bug. can you log it against qt-quick ... if there is a trick to get this working, then a bug against insufficient documentation :)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        Hi,

        Eliding multi-line text isn't currently supported, but it's something we'd like to support (see "QTBUG-12305":http://bugreports.qt.nokia.com/browse/QTBUG-12305). We'll update the documentation for elide to make that clearer (it currently says that it cannot be used with wrapping enabled, but it's really any multiline text that doesn't work).

        Regards,
        Michael

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bunjee
          wrote on last edited by
          #4

          Thanks guys.

          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