Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dridk/qjsonmodel
Qt Json Tree Model
https://github.com/dridk/qjsonmodel
c-plus-plus json json-tree-model qt5
Last synced: 1 day ago
JSON representation
Qt Json Tree Model
- Host: GitHub
- URL: https://github.com/dridk/qjsonmodel
- Owner: dridk
- License: mit
- Created: 2015-01-22T07:19:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T15:57:44.000Z (12 days ago)
- Last Synced: 2024-12-14T23:08:40.914Z (9 days ago)
- Topics: c-plus-plus, json, json-tree-model, qt5
- Language: C++
- Homepage:
- Size: 154 KB
- Stars: 453
- Watchers: 32
- Forks: 144
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QJsonModel
QJsonModel is a JSON tree model class for Qt6/C++17 based on QAbstractItemModel.QJsonModel was originally written by Sacha Shutz (https://github.com/dridk).
This fork is also released under the MIT License.
![QJsonModel](https://gitea.beniquez.me/sdaveb/QJsonModel/raw/branch/master/screen.png)
## Build Instructions
### Build Tools
- CMake (version 3.21 or higher)
- C++17-compatible compiler### Building the Project
1. Clone the repository:
```
git clone
```2. Navigate to the project directory:
```
cd elemental-game
```
3. Configure your build system:
```bash
cmake -B debug -G Unix Makefiles
# or
cmake -B debug -G Ninja # this is faster and more modern
```
4. Invoke your build system
```
cmake --build debug
```
### Usage - CMakeYou can add this library to your CMake projects using FetchContent()
or CPM_AddPackage().Here's how to do it with CPM_AddPackage:
```
COMING SOON
```### Usage - C++
####
```cpp
QJsonModel * model = new QJsonModel;
QTreeView * view = new QTreeView;
view->setModel(model);
model->load("example.json")
```