CHAPTER 3Widgets and Layouts

All graphical user interfaces (UIs) are built around widgets that are arranged using layouts. In this chapter you will learn which widgets Qt provides and how they are used. You will also have a look at how layouts are used to create the desired design. The chapter alternates between using code directly and using Designer to visually build the user interface, which will teach you to understand the code that Designer generates.

Creating Dialogs in Qt

As you learned in the last chapter, a dialog is a top-level window, and all dialogs are built from widgets. Further, widgets are organized using layouts that make it possible to build flexible dialogs.

Layouts help make Qt special. Using layouts makes it easy to build ...

Get Foundations of Qt Development now with O’Reilly online learning.

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