SkillAgentSearch skills...

QJsonModel

Qt Json Tree Model

Install / Use

/learn @dridk/QJsonModel
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

QJsonModel

QJsonModel is a JSON tree model class for Qt6/C++17 based on QAbstractItemModel.

QJsonModel

Build Instructions

Build Tools

  • CMake (version 3.21 or higher)
  • C++17-compatible compiler

Building the Project

  1. Clone the repository:

    git clone <URL>
    
  2. Navigate to the project directory:

    cd  elemental-game
    
  3. Configure your build system:

    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 - CMake

You 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++

QJsonModel * model = new QJsonModel;
QTreeView * view = new QTreeView;
view->setModel(model);
model->load("example.json")
View on GitHub
GitHub Stars475
CategoryDevelopment
Updated4h ago
Forks150

Languages

C++

Security Score

95/100

Audited on Mar 29, 2026

No findings