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. QML TreeView: rowDelegate height variable with model index.
QtWS25 Last Chance

QML TreeView: rowDelegate height variable with model index.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 719 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.
  • CesarioC Offline
    CesarioC Offline
    Cesario
    wrote on last edited by
    #1

    Is there any way to define the row delegate height based on any model data ?
    I mean, something
    rowDelegate : Rectangle {
    height : model.itemHeight
    }
    ... where model.itemHeight is a function of the model index.

    I did some test: it seems to work, but if you delete some index in the model delegate you could end up with a crush : (

    Thanks a lot for any suggestions.

    1 Reply Last reply
    1

    • Login

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