CHAPTER 4The Main Window

Thus far in this book you have primarily used dialogs to communicate with your users. Yet although dialogs are a great solution when you need a widget for holding widgets and guiding the user in a particular task or configuring options surrounding a specific subject, most applications are not based around just one particular task, but a document. This is where a main window enters the picture.

A main window is the top-level window around which an application is based. It can have a menu bar, toolbars, a status bar, and areas in which toolboxes and other supporting windows can be docked. It is possible to open the application's dialogs from the main window, and the main window contains the working document.

Note Unless ...

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.