13.7 Review Questions
-
What are model classes? What are view classes? What relationship should be maintained between them?
-
What tools are provided by Qt to work with models and views?
-
What is MVC?
-
What is controller code? Which Qt classes are controller classes?
-
What are delegates? Where are they found?
-
In relation to delegates, what are roles?
-
How do you determine what item(s) is/are selected in a QListView?
-
If you want to iterate through items in an QAbstractItemModel, what would be a good class to use?
-
There are two hierarchies of classes for storing and displaying tree-like data: *Widget/Item and *ItemModel/View. What reasons might you have for using one rather than the other?
-
Why would you use the QStandardItemModel rather than the QAbstractItemModel? Or vice versa?