---
title: "Discussion on \"GitRaven: How to use QTreeView with a custom model class\" | Hashnode"
description: "Discussion on \"GitRaven: How to use QTreeView with a custom model class\". Hi,\nThis blog post will cover how to create a custom model class based on QAbstractItemModel to render custom data with QTreeView in C++.\nTheory\nGeneral idea:\n\nCreate a new class RavenTreeModel based on QAbstractTreeModel.\n\nWe need to override few me..."
url: "https://hashnode.com/posts/gitraven-how-to-use-qtreeview-with-a-custom-model-class/6897519d3848108402859b12"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [GitRaven: How to use QTreeView with a custom model class](https://blog.suryatejak.in/gitraven-how-to-use-qtreeview-with-a-custom-model-class?utm_source=hashnode&utm_medium=feed)

Hi, This blog post will cover how to create a custom model class based on QAbstractItemModel to render custom data with QTreeView in C++. Theory General idea: Create a new class RavenTreeModel based on QAbstractTreeModel. We need to override few me...

Aug 9, 2025 · 10 min read · blog.suryatejak.in  
Read the article

-   [#qt](https://hashnode.com/tag/qt)
-   [#git](https://hashnode.com/tag/git)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#treeview](https://hashnode.com/tag/treeview)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Surya Teja Karra](https://hashnode.com/@shanmukhateja)

@shanmukhateja · Hyderabad, India

  
[View profile](https://hashnode.com/@shanmukhateja)

Doing what I love <3

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
