Tree Models
Review Questions
1. |
What is controller code? Which Qt classes are controller classes? |
2. |
What pattern(s) is/are used in the design of InputField? |
3. |
Because there is a 1:1 correspondence between InputField and Question, we could easily combine the two classes into one. What would you call that class? Explain the advantages or disadvantages of this design. |
4. |
How do you determine what item(s) is/are selected in a QListView? |
5. |
If we wanted to iterate through items in an QAbstractItemModel, what would be a good class to use? |
6. |
There are two distinct model-view class pairs for storing and displaying tree-like data. What are they called? Why would you use one versus the other? |