Skip to content

qt-learning/Model-View-Delegate

Repository files navigation

Model View Delegate with QML

This is the repo for the Qt Academy on Models, Views and Delegates with QML.

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

  • Understand the relationship between Models, Views, and Delegates in the Qt framework.
  • Manage and display dynamic data in a structured format using built-in models.
  • Create custom views and delegates to display complex data efficiently.
  • Develop a real-world project integrating live weather data into a user-friendly interface.

⭐ Skill Level: Beginner

⏱️ Time to Complete: 95 minutes

Getting Started

Starting from an initially prepared starting point working project 00-Initial Project, the course will go through a number of sections which you will be able to follow along.

At the end of each section you'll be encouraged to experiment with what you've learned and try out some ideas for yourself.

The git repository for this course contains named folders for each section with a completed Main.qml file for reference (not the entire project).

If you are ever unsure of what you've done, need to reset or just want to review a section, you can copy any of the reference Main.qml files into your project at any time.

Instructions

To get started with this project, you will need to have Qt 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 to create the project template and add the assets to the project.

To run the project in Qt Creator, navigate to the folder 00-Initial Project open the CMakeLists.txt file. Build and run the project in Qt Creator. The application will launch and you will see the application at that current stage.

Resources

Attributions for any assets used can be found below.

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 course explains the Model View Delegate pattern within QML and the Qt framework. This course will provide a hands-on understanding of the key elements of Models, Views, and Delegates and the interaction between Qt Types.

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.

Third-Party Attributions

Image Attributions

The background images used in this project are sourced from Unsplash, Each image is credited to its respective Unsplash in 00 - Initial Project/assets/images/attributions.md. These images are licensed under the Unsplash License.

Weather Icons

The weather icons used in this project are sources from the Material Symbols library provided by Google. The icons are available under the Apache License Version 2.0.

Weather Data

The weather data used in this project is sourced from Open-Meteo.com, which provides free weather data APIs for non-commercial use. The API data is offered under Creative Commons Attribution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •