[ fromfile: lists-questions.xml id: lists-questions ]
Name three applications in which QStringList would be useful.
How can you convert a QStringList to a QString? Why might you want to do that?
How can you convert a QString to a QStringList? Why might you want to do that?
What is the Iterator pattern? Give three examples.
Draw a UML diagram with three or more classes and make sure that all these different kinds of relationships are represented.
Aggregation and composition
One-to-One and One-to-Many
Unidirectional and bidirectional
The classes should represent real-world concepts, and the relationships should attempt to represent reality. Write a couple of paragraphs explaining why there is a relationship of each kind in your diagram.
What is the difference between composition and aggregation?
Read the API docs for QList and find three distinct ways to add elements to the list.
List three methods that exist in QStringList but are not in QList.
Why does QList have an
iterator
and an Iterator
? What is the
difference between them?
Discuss the advantages and disadvantages of Qt or STL container classes as compared with arrays.
Discuss the syntax of the QList declaration. What should be in <angle brackets>? Why is it necessary?
Why does Qt support so many different kinds of iterators?
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |