O'Reilly logo

Foundations of Qt Development by Johan Thelin

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 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 ...

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