Better_Software_Header_Mobile Better_Software_Header_Web

Find what you need - explore useful information and developer resources

Areas of Interest

Searching…

842 results

One thing is being told, yet another is to see for yourself. Which is why in this episode we will see the implementation of a tree model coded from scratch.

We finally made it here - with all the building blocks in place, watch this video to understand what it takes to implement a tree model.

When you implement a model, it is worthwhile remembering that one day an intern, with far less experience than you, might implement a proxy model which sits on top of your model and acts as the view. This proxy model might be broken in ways you couldn't even imagine, so better check that the index provided are actually referring to valid data in your model.

As the title suggests, here Jesper live codes a model based on QAbstractTableModel.

Finally, it is time to learn how to implement our own models. We will start with lists and tables in this episode, and later move on to tree models.

In the previous episode we saw the very high level view of model/view. Here, the descent towards actual code begins. On the way there we will discuss how to address the individual items in the views (while simple for a table, not so straightforward for a tree), and the properties we can get for each cell.

After two episodes talking about the item versions of lists, tables, and trees, we now turn our attention to the model/view version of that story. Using model/view offers a great opportunity to do a separation between business logic and presentation. In this episode we will learn how each of the parts fits together.

In this episode, we will continue looking at the item based widgets for lists, tables, and trees. We will cover "the current item", selection, sorting and event handling.

Qt has two kinds of lists, tables, and trees. One kind uses a model/view setup which gives a great separation between data and presentation. The other one is item based, meaning your data is stored in the items, just like the checked value is stored inside the checkbox.

This YouTube short summarizes changes needed to have a Qt Quick app work with both Qt 5 and Qt 6. It primarily focuses on required changes to QML and CMake files, but it also mentions other aspects of porting C++ and shaders that are discussed more in depth in other videos.

Shipping your app with all dependencies is hard. One way to solve this, is to use Docker on Embedded to combine all dependencies into a single update. In this video, Christoph presents Torizon, one Docker-based solution to handle images and updates on Embedded.

Building an embedded device is a challenge in itself, but bringing it to market means even more work. In this short 'Insights' video, Christoph describes what KDAB did for their customer Kistler, who builds some of the most precise pressure-measurement devices available, to bring a very mobile, handheld device from prototype to market.

The "Locator" in Qt Creator offers an extensive set of commands that make programming easier. In this video we show a subset of its features, hidden behind the Ctrl+K shortcut.

Qt Creator provides a lot of useful features, many of which are easily accessible by keyboard shortcuts. This video demonstrates a few shortcuts around code navigation, editing and program execution.

On the fly translations are doable, but as we will show during the demonstration, they can also be rather difficult to get right.

What does tr() really do? Is it a function, a macro, or what is it, and where is it located? How about QT_TRANSLATE_NOOP, and when do I need that? Find the answers to all these questions and more in this episode.