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

horizontal scrollbar for treeview



  • Hi Friends,
    I have edited "treeview" project example.
    I want to horizontal scrollbar is shown when width of Viewport < width of content.
    Please help to solve this issue, thanks !.

    This is my code:
    ApplicationWindow {
    visible: true
    title: qsTr("Simple Tree View")

    ItemSelectionModel {
        id: sel
        model: theModel
    }
    
    TreeView {
        id: idTest
        anchors.fill: parent
        model: theModel
        selection: sel
        itemDelegate: TreeDelegate {}
    
        TableViewColumn {
            id: columnTest
            role: "title"
            title: "Title"
            resizable: true
        }              
    }
    

    }


Log in to reply