6. Model/View Views

This chapter covers model/view views, and is the last chapter covering Qt’s model/view architecture. Just like the previous two chapters, this chapter assumes a basic familiarity with the model/view architecture, as described at the beginning of Chapter 3 (88 image).

Qt’s standard model views, QListView, QTableView, QColumnView, and QTreeView, are sufficient for most purposes, most of the time. And like other Qt classes, they can be subclassed—or we can use custom delegates—to affect how they display the model’s items. However, there are two situations where we ...

Get Advanced Qt Programming: Creating Great Software with C++ and Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.