O'Reilly logo

Advanced Qt Programming: Creating Great Software with C++ and Qt 4 by Mark Summerfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Model/View Delegates

This chapter covers model/view delegates, and assumes a basic familiarity with Qt’s model/view architecture, as described at the beginning of Chapter 3 (88 image).

All of Qt’s standard view classes—QListView, QTableView, QColumnView, QTreeView, and QComboBox—provide a QStyledItemDelegate for the display and editing (in the case of editable models) of the data they access.*

* Qt also has a QItemDelegate class but this was superceded from Qt 4.4 by QStyledItemDelegate.

In this chapter we will see how to set and use custom delegates that can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required