O'Reilly logo

C++ GUI Programming with Qt 3 by Mark Summerfield, Jasmin Blanchette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Container Classes

Container classes are general purpose template classes that store items of a given type in memory. Standard C++ already includes many containers as part of the Standard Template Library (STL).

Qt provides its own container classes, so when we write Qt programs, we can use both the Qt and the STL containers. If you are already familiar with the STL containers and have STL available on your target platforms, there’s no particular reason to use the Qt containers.

In this chapter, we review the most important STL and Qt containers. We also look at QString and QVariant, two classes that have many things in common with containers and that can be used as alternatives ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required