Tree Models

Table of contents:

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?


Part I: Introduction to C++ and Qt 4

C++ Introduction

Classes

Introduction to Qt

Lists

Functions

Inheritance and Polymorphism

Part II: Higher-Level Programming

Libraries

Introduction to Design Patterns

QObject

Generics and Containers

Qt GUI Widgets

Concurrency

Validation and Regular Expressions

Parsing XML

Meta Objects, Properties, and Reflective Programming

More Design Patterns

Models and Views

Qt SQL Classes

Part III: C++ Language Reference

Types and Expressions

Scope and Storage Class

Statements and Control Structures

Memory Access

Chapter Summary

Inheritance in Detail

Miscellaneous Topics

Part IV: Programming Assignments

MP3 Jukebox Assignments

Part V: Appendices

MP3 Jukebox Assignments

Bibliography

MP3 Jukebox Assignments



An Introduction to Design Patterns in C++ with Qt 4
An Introduction to Design Patterns in C++ with Qt 4
ISBN: 0131879057
EAN: 2147483647
Year: 2004
Pages: 268

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net