arunpkqt / QMLTreeView

QML TreeView with custom folder list model in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QMLTreeView

QMl TreeView with custom folder list model in C++

This application is to demonstrate the use of exposing custom model to QML to be used with the QML TreeView component.

Example Usage in QML:

 TreeView {
        anchors.fill: parent
        TableViewColumn {
            role: "display" //this will show the folder/file name from the model
        }
        model: sandBoxModel
    }

alt tag

About

QML TreeView with custom folder list model in C++

License:GNU General Public License v3.0


Languages

Language:C++ 80.3%Language:QMake 13.0%Language:QML 6.8%