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
-
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.
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.
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.
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:
- Navigate to the project folder
- Open the
CMakeLists.txtfile - Build and run the project
The application will launch and display a window demonstrating the model-view concepts covered in each section.
If you need additional help, the following resources may be helpful:
- Qt Documentation - Models and Views in Qt Quick: https://doc.qt.io/qt-6/qtquick-modelviewsdata-modelview.html
- Qt Documentation: https://doc.qt.io
- Qt Forum: https://forum.qt.io
- Qt Academy: https://qt.io/academy
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.
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.