Skip to content

qt-learning/QML-Models-Views

Repository files navigation

QML Models and Views

Welcome to the repository for the course "QML Models and Views" on Qt Academy.

Get the full learning experience by enrolling in the course on Qt Academy

You can also find the course playlist on the Qt YouTube channel

What You'll Learn

  • Building ListModel and ListView components to display and manage dynamic list-based data in Qt Quick.

  • Creating TableModel and TableView layouts for structured, tabular data presentation.

  • Implementing TreeView hierarchies to represent nested, parent-child data relationships.

  • Using ObjectModel to manage and display pre-defined QML objects within views.

Getting Started

In this course, you will explore the core model-view patterns in QML, including list models, table models, tree views, and object models. You'll learn how to build dynamic, data-driven user interfaces using Qt Quick's powerful model-view architecture.

The repository contains reference projects for each video section:

Folder Description
QMLModelsViews_Section_2_to_5 ListModel/ListView example in Qt Quick
QMLModelsViews_Section_6_to_8 TableModel/TableView example in Qt Quick
QMLModelsViews_Section9 TreeView example in Qt Quick
QMLModelsViews_Section10 ObjectModel example in Qt Quick

Note: The projects are not required to complete the course, but are provided as a reference to help you understand the concepts discussed.

Prerequisites

Before getting started, you should be familiar with Qt Quick fundamentals. Consider first exploring the full Creating Qt Quick User Interfaces learning path on Qt Academy, which provides the foundational knowledge needed to get the most from this course.

Instructions

To get started with this project, you will need to have Qt (6.5 or later) and an IDE (e.g., Qt Creator) installed on your computer. You can download Qt and Qt Creator from the Qt.io website.

Once you have Qt and an IDE installed, head over to Qt Academy and follow along with the course videos.

To run any project in Qt Creator:

  1. Navigate to the project folder
  2. Open the CMakeLists.txt file
  3. Build and run the project

The application will launch and display a window demonstrating the model-view concepts covered in each section.

Resources

If you need additional help, the following resources may be helpful:

Licensing Information

Copyright (C) 2026 Qt Group.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

This is a models and views learning project demonstrating how to create models and views in a Qt Quick based application.

Terms and Conditions

If you, your employer, or the legal entity you act on behalf of hold commercial license(s) with a Qt Group entity, this software package constitutes Pre-Release Code under the Qt License/Frame Agreement governing those licenses, and that agreement's terms and conditions govern your access and use of this software package.

This software package may provide links or access to third party libraries or code (collectively "Third-Party Software") to implement various functions. Use or distribution of Third-Party Software is discretionary and in all respects subject to applicable license terms of applicable third-party right holders.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors