From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.


Select only item in TreeView



  • Hi!

    I have next TreeView in QML:

    TreeView {
        id: tree
        width: 300
        model: pgItemModel
        headerVisible: false
    
        TableViewColumn {
            resizable: true
            role: "display"
        }
    }
    

    When user selects a tree item, entire row will be highlighted:
    Full row selection
    But better if only tree item will be highlighted, as in the following example:
    Item selection
    How can I do this?
    Thanks!


Log in to reply