Qt Json Tree Model
Go to file
Marcelo M. A b7c5d9e279 Fix: Root TreeItem (Object and Array) are not editable
Prevent enter in edit mode when "double click" on root item,
The root item represent objects and arrays
2018-03-23 20:23:36 -03:00
.gitignore init repo 2015-01-22 08:24:08 +01:00
LICENSE change license to MIT 2017-01-04 01:13:57 +01:00
main.cpp change license to MIT, make code simple, add C++11 feature 2017-01-06 19:53:45 +01:00
qjsonmodel.cpp Fix: Root TreeItem (Object and Array) are not editable 2018-03-23 20:23:36 -03:00
qjsonmodel.h Rebuild QJsonDocument from the Model 2018-03-21 20:00:57 -03:00
QJsonModel.pro Fix QJsonModel.pro 2018-03-21 16:49:28 -03:00
README.md Update README.md 2017-05-04 11:44:08 +02:00
screen.png change license to MIT, make code simple, add C++11 feature 2017-01-06 19:53:45 +01:00

QJsonModel

QJsonModel is a json tree model class for Qt5/C++11 based on QAbstractItemModel. QJsonModel is under MIT License.

QJsonModel

Installation

Add qjsonmodel.cpp and qjsonmodel.h into your project.

Usage

QJsonModel * model = new QJsonModel;
QTreeView * view = new QTreeView;
view->setModel(model);
model->load("example.json")