├── .gitignore ├── README.md ├── assets └── img │ ├── tableview.jpg │ ├── treeview.gif │ └── treeview_1.gif ├── qml-examples.pro └── src ├── README.md ├── gridview ├── README.md ├── gridview.pro ├── main.cpp ├── main.qml └── qml.qrc ├── src.pro ├── tableview ├── README.md ├── main.cpp ├── main.qml ├── migration.cpp ├── migration.h ├── migrations │ ├── 001_books.sql │ └── 002_publisher.sql ├── qml.qrc ├── res.qrc ├── sql.h ├── tablemodel.cpp ├── tablemodel.h └── tableview.pro └── treeview ├── README.md ├── jsontreemodel.cpp ├── jsontreemodel.h ├── main.cpp ├── qml.qrc ├── qml ├── TreeItem.qml ├── TreeView.qml └── main.qml ├── res.qrc ├── resources ├── arrow.png └── tree.json ├── treemodel.cpp ├── treemodel.h ├── treemodel_p.h ├── treemodelproxy.cpp ├── treemodelproxy.h └── treeview.pro /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/README.md -------------------------------------------------------------------------------- /assets/img/tableview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/assets/img/tableview.jpg -------------------------------------------------------------------------------- /assets/img/treeview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/assets/img/treeview.gif -------------------------------------------------------------------------------- /assets/img/treeview_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/assets/img/treeview_1.gif -------------------------------------------------------------------------------- /qml-examples.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS += \ 4 | src -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/README.md -------------------------------------------------------------------------------- /src/gridview/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/gridview/README.md -------------------------------------------------------------------------------- /src/gridview/gridview.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/gridview/gridview.pro -------------------------------------------------------------------------------- /src/gridview/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/gridview/main.cpp -------------------------------------------------------------------------------- /src/gridview/main.qml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/gridview/main.qml -------------------------------------------------------------------------------- /src/gridview/qml.qrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/gridview/qml.qrc -------------------------------------------------------------------------------- /src/src.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/src.pro -------------------------------------------------------------------------------- /src/tableview/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/README.md -------------------------------------------------------------------------------- /src/tableview/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/main.cpp -------------------------------------------------------------------------------- /src/tableview/main.qml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/main.qml -------------------------------------------------------------------------------- /src/tableview/migration.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/migration.cpp -------------------------------------------------------------------------------- /src/tableview/migration.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/migration.h -------------------------------------------------------------------------------- /src/tableview/migrations/001_books.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/migrations/001_books.sql -------------------------------------------------------------------------------- /src/tableview/migrations/002_publisher.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/migrations/002_publisher.sql -------------------------------------------------------------------------------- /src/tableview/qml.qrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/qml.qrc -------------------------------------------------------------------------------- /src/tableview/res.qrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/res.qrc -------------------------------------------------------------------------------- /src/tableview/sql.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/sql.h -------------------------------------------------------------------------------- /src/tableview/tablemodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/tablemodel.cpp -------------------------------------------------------------------------------- /src/tableview/tablemodel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/tablemodel.h -------------------------------------------------------------------------------- /src/tableview/tableview.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/tableview/tableview.pro -------------------------------------------------------------------------------- /src/treeview/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/README.md -------------------------------------------------------------------------------- /src/treeview/jsontreemodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/jsontreemodel.cpp -------------------------------------------------------------------------------- /src/treeview/jsontreemodel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/jsontreemodel.h -------------------------------------------------------------------------------- /src/treeview/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/main.cpp -------------------------------------------------------------------------------- /src/treeview/qml.qrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/qml.qrc -------------------------------------------------------------------------------- /src/treeview/qml/TreeItem.qml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/qml/TreeItem.qml -------------------------------------------------------------------------------- /src/treeview/qml/TreeView.qml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/qml/TreeView.qml -------------------------------------------------------------------------------- /src/treeview/qml/main.qml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/qml/main.qml -------------------------------------------------------------------------------- /src/treeview/res.qrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/res.qrc -------------------------------------------------------------------------------- /src/treeview/resources/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/resources/arrow.png -------------------------------------------------------------------------------- /src/treeview/resources/tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/resources/tree.json -------------------------------------------------------------------------------- /src/treeview/treemodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treemodel.cpp -------------------------------------------------------------------------------- /src/treeview/treemodel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treemodel.h -------------------------------------------------------------------------------- /src/treeview/treemodel_p.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treemodel_p.h -------------------------------------------------------------------------------- /src/treeview/treemodelproxy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treemodelproxy.cpp -------------------------------------------------------------------------------- /src/treeview/treemodelproxy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treemodelproxy.h -------------------------------------------------------------------------------- /src/treeview/treeview.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuriyoung/qml-examples/HEAD/src/treeview/treeview.pro --------------------------------------------------------------------------------