Skip to Content
Introduction to Design Patterns in C++ with Qt, 2nd Edition
book

Introduction to Design Patterns in C++ with Qt, 2nd Edition

by Alan Ezust, Paul Ezust
September 2011
Intermediate to advanced
768 pages
15h 18m
English
Pearson
Content preview from Introduction to Design Patterns in C++ with Qt, 2nd Edition

Chapter 9: Widgets and Designer

This chapter provides an overview of the graphical user interface (GUI) building blocks in the Qt library, called widgets, and includes some simple examples of how to use them. We use QtCreator and Designer to explore the widgets and their features and to integrate forms with user code.

A widget is an object of a class derived from QWidget that has a visual representation on the screen. The structural origins of QWidget are shown in Figure 9.1.

Figure 9.1 QWidget’s Heritage

image

QWidget is a class that uses multiple inheritance (Section 22.3). A QWidget is a QObject, and thus can have a parent, signals, slots, and managed ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Design Patterns in C++ with Qt 4

An Introduction to Design Patterns in C++ with Qt 4

Alan Ezust, Paul Ezust
Programming with Qt, 2nd Edition

Programming with Qt, 2nd Edition

Matthias Kalle Dalheimer

Publisher Resources

ISBN: 9780132851619Purchase book