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



  • 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.



  • 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.



  • Yep, should have seen that one. Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.