Table of Contents
[ fromfile: modelview.xml id: modelview ]
Abstract
A Model-View design framework provides tools and techniques for separating the set of underlying data classes (the model) from the set of classes that present the user with a GUI (the view). Models typically organize the data, which can be tabular, or hiearchical. In this chapter, we will show how to use the model classes in Qt to represent many different kinds of data.
reduces the complexity of each.
makes it possible to maintain several different, but consistent, views of the same data.
Most GUI toolkits offer list, table, and tree view classes, but require the developer to store data inside them.
Qt has Widget classes derived from corresponding View classes, as shown in Figure 13.1.
It also makes it difficult to maintain multiple consistent views of the same data.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |