PART 2The Qt Building Blocks

This part looks at the key parts of Qt in depth. The classes and techniques presented here enable you to create and modify the Qt building blocks and create custom components for your own applications.

CHAPTER 5The Model-View Framework

Models and views are design patterns that frequently occur in software of all types. By separating the data into a model and rendering that model to the users through views, a robust and reusable design is created.

Models are used to describe the structures shown in Figure 5-1: lists, tables, and trees. A list is a one-dimensional vector of data. A table is a list, but with multiple columns—a two-dimensional data structure. A tree is simply a table, but with yet another dimension ...

Get Foundations of Qt Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.