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

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.