Chapter 11. Qt GUI Widgets

This chapter provides an overview of the GUI building blocks, called widgets, that are part of the Qt library and includes some simple examples of how to use them.

11.1

Widget Categories

239

11.2

QMainWindow and QSettings

240

11.3

Dialogs

244

11.4

Images and Resources

248

11.5

Layout of Widgets

251

11.6

QActions, QMenus, and QMenuBars

260

11.7

QActions, QToolbars, and QActionGroups

262

11.8

Regions and QDockWidgets

270

11.9

Views of a QStringList

272

Widgets, objects of classes derived from QWidget, are reusable building blocks with a visual representation on the screen. The common features of a QWidget are shown in Figure 11.1.

QWidget’s Heritage

Figure 11.1. QWidget’s ...

Get An Introduction to Design Patterns in C++ with Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.