Need help with QJsonModel?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

dridk
252 Stars 88 Forks MIT License 41 Commits 0 Opened issues

Description

Qt Json Tree Model

Services available

!
?

Need anything else?

Contributors list

# 215,047
C++
c-plus-...
qt5
18 commits
# 319,793
gtfs
SQLite
public-...
Emacs
5 commits
# 67,227
Shell
pyside2
pyside
python3
2 commits
# 229,547
adverti...
Shell
environ...
c-plus-...
2 commits
# 3,053
Shell
Perl
pixhawk
rpg
1 commit
# 442,791
PHP
c-plus-...
qt5
1 commit
# 102,590
C++
qtquick
touch-d...
Linux
1 commit

QJsonModel

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

QJsonModel

Usage C++

Add

qjsonmodel.cpp
and
qjsonmodel.h
into your project.
QJsonModel * model = new QJsonModel;
QTreeView * view = new QTreeView;
view->setModel(model);
model->load("example.json")

Usage Python

Add

qjsonmodel.py
to your
PYTHONPATH
.
$ pip install Qt.py
import json
import qjsonmodel

model = QJsonModel() view = QTreeView() view.setModel(model)

with open("example.json") as f: model.load(json.load(f))

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.