Qt Json Tree Model
f43b78e778
Update constructor |
||
---|---|---|
.gitignore | ||
LICENSE | ||
main.cpp | ||
qjsonmodel.cpp | ||
qjsonmodel.h | ||
QJsonModel.pro | ||
README.md | ||
screen.png |
QJsonModel
QJsonModel is a json tree model class for Qt5/C++11 based on QAbstractItemModel. QJsonModel is under MIT License.
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")