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

4. Model/View Tree Models

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

In this chapter we will look at tree models. In the first section we will cover using a QStandardItemModel subclass with its items held in a QStandardItem subclass. (In the previous chapter we used QStandardItems as is.) And in the second section we will replace the QStandardItemModel with a custom model. Just as with the table model examples in the previous chapter, we will see ...

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