QDialog Class Reference |
Constant | Value |
---|---|
QDialog::Accepted | 1 |
QDialog::Rejected | 0 |
This property holds whether show() should pop up the dialog as modal or modeless.
By default, this property is false and show() pops up the dialog as modeless.
exec() ignores the value of this property and always pops up the dialog as modal.
Access functions:
This property holds whether the size grip is enabled.
A QSizeGrip is placed in the bottom-right corner of the dialog when this property is enabled. By default, the size grip is disabled.
Access functions:
Constructs a dialog with parent parent.
A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry.
The widget flags f are passed on to the QWidget constructor. If, for example, you don't want a What's This button in the title bar of the dialog, pass Qt::WindowTitleHint | Qt::WindowSystemMenuHint in f.
See also QWidget::setWindowFlags().
Destroys the QDialog, deleting all its children.
Hides the modal dialog and sets the result code to Accepted.
Closes the dialog and sets its result code to r. If this dialog is shown with exec(), done() causes the local event loop to finish, and exec() to return r.
As with QWidget::close(), done() deletes the dialog if the Qt::WA_DeleteOnClose flag is set. If the dialog is the application's main widget, the application terminates. If the dialog is the last window closed, the QApplication::lastWindowClosed() signal is emitted.
See also accept(), reject(), QApplication::activeWindow(), and QApplication::quit().
Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.
Users cannot interact with any other window in the same application until they close the dialog.
Returns the dialog's extension or 0 if no extension has been defined.
See also setExtension().
Returns the dialog's extension orientation.
See also setOrientation().
Hides the modal dialog and sets the result code to Rejected.
Returns the modal dialog's result code, Accepted or Rejected.
Do not call this function if the dialog was constructed with the Qt::WA_DeleteOnClose attribute.
See also setResult().
Sets the widget, extension, to be the dialog's extension, deleting any previous extension. The dialog takes ownership of the extension. Note that if 0 is passed any existing extension will be deleted.
This function must only be called while the dialog is hidden.
See also showExtension(), setOrientation(), and extension().
If orientation is Qt::Horizontal, the extension will be displayed to the right of the dialog's main area. If orientation is Qt::Vertical, the extension will be displayed below the dialog's main area.
See also orientation() and setExtension().
Sets the modal dialog's result code to i.
See also result().
If showIt is true, the dialog's extension is shown; otherwise the extension is hidden.
This slot is usually connected to the QPushButton::toggled() signal of a QPushButton.
A dialog with a visible extension is not resizeable.
See also show(), setExtension(), and setOrientation().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.0 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com