Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [closed] ItemDelegates,TreeView,And Multi-Line Text
Forum Updated to NodeBB v4.3 + New Features

[closed] ItemDelegates,TreeView,And Multi-Line Text

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k 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.
  • Q Offline
    Q Offline
    qtnewb11
    wrote on last edited by
    #1

    By default a row of a tree view is on a single line and the text gets truncated if the column isn’t large enough. I want to allow text to span multiple lines based on the width of the column. I also want it to re-paint itself properly when the TreeView is resized when it is part of a layout and that layout expands. Right now I only need that behavior on child items (max depth is rows with multiple subrows) and nothing shows at all.

    I’ve included code that isn’t working at the moment based off QT’s star delegate example, any help would be appreciated. None of the item data are passing the qVariantCanConvert check and I’m not sure why.

    Between the service crashing and my post being cutoff I realised I posted twice, and my posts are too long so not all my code is included. I have code to share so let me know how to get it on here…?

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Duplicate from "this thread":http://developer.qt.nokia.com/forums/viewthread/12167/.

      I'm closing it.

      Qt Certified Specialist
      www.edalsolutions.be

      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