July 2010
Intermediate to advanced
560 pages
14h 45m
English
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
).
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 ...
Read now
Unlock full access