Qt Json Tree Model
Go to file
Marcelo M. A 1a167ed496 Rebuild QJsonDocument from the Model
When edit  the json  from the  view, it  is possible  to get  back the
edited json

Implemented public method:
  - QJsonModel::json
2018-03-21 20:00:57 -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 Rebuild QJsonDocument from the Model 2018-03-21 20:00:57 -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")