Home · All Classes · All Functions · Overviews

[Previous: The Application Main Window] [Application Windows and Dialogs] [Next: Desktop Integration]

Dialog Windows

Dialogs can be modal, in which case the user is required to provide necessary information before work in the main window can continue, or modeless. Modeless dialogs do not prevent the user from interacting with any of the other windows in the application.

Qt provides a set of ready-made dialogs for file, font, color-selection and more.

QColorDialogDialog widget for specifying colors
QFileDialogDialog that allow users to select files or directories
QFontDialogDialog widget for selecting a font
QInputDialogSimple convenience dialog to get a single value from the user
QMessageBoxModal dialog for informing the user or for asking the user a question and receiving an answer
QPageSetupDialogConfiguration dialog for the page-related options on a printer
QPrintDialogDialog for specifying the printer's configuration
QPrintPreviewDialogDialog for previewing and configuring page layouts for printer output
QProgressDialogFeedback on the progress of a slow operation

Custom dialogs can be easily created by composing regular widgets into a QDialog. These classes are specifically designed for building custom dialogs:

QDialogThe base class of dialog windows
QDialogButtonBoxWidget that presents buttons in a layout that is appropriate to the current widget style

[Previous: The Application Main Window] [Application Windows and Dialogs] [Next: Desktop Integration]


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0