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. Test if "elide" is invoked on current item of ListView
Forum Updated to NodeBB v4.3 + New Features

Test if "elide" is invoked on current item of ListView

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.0k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Duff
    wrote on last edited by
    #1

    Hi,

    I would like to check if the currentItem of my ListView is getting "elided" so that I can perform a particular action. How can I check? I have tried checking the elided property and the clip property but that does not help.

    --Duff

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      Eliding happens automatically whenever Text.width < Text.contentWidth, though a bit more complex when text is wrapping. However as far as I can tell, there is already a "bool truncated" property that can be used for exactly this purpose.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Duff
        wrote on last edited by
        #3

        Yep, should have seen that one. Thanks!

        --Duff

        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