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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.