Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML TreeView: rowDelegate height variable with model index.



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


Log in to reply