QAbstractMessageBox Class Reference
|
Constant | Value | Description |
---|---|---|
QAbstractMessageBox::NoButton | 0 | An empty button. This indicates that no button is required. |
QAbstractMessageBox::Ok | 11 | An Ok button. |
QAbstractMessageBox::Cancel | 12 | A cancel button. |
QAbstractMessageBox::Yes | 13 | A yes button. |
QAbstractMessageBox::No | 14 | A no button. |
Represents the icon to show in the message box.
Constant | Value | Description |
---|---|---|
QAbstractMessageBox::NoIcon | 0 | No icon will be shown. |
QAbstractMessageBox::Question | 1 | A question icon will be shown. |
QAbstractMessageBox::Information | 2 | An information icon will be shown. |
QAbstractMessageBox::Warning | 3 | A warning icon will be shown. |
QAbstractMessageBox::Critical | 4 | A critical condition icon will be shown. |
Constructs a new QAbstractMessageBox instance, with the specified parent and widget flags.
Opens a critical message box with the title and text. The standard buttons button1 and button2 are added to the message box.
Returns the identity of the standard button that was activated.
If parent is 0, the message box becomes an application-global message box. If parent is a widget, the message box becomes modal relative to parent.
Returns the message box icon. If the icon was set via setIconPixmap() this function returns QAbstractMessageBox::NoIcon.
See also setIcon().
Opens an informational message box with the title and text. The standard buttons button1 and button2 are added to the message box.
Returns the identity of the standard button that was activated.
If parent is 0, the message box becomes an application-global message box. If parent is a widget, the message box becomes modal relative to parent.
Returns a new message box instance with the specified parent, title, text, icon and standard buttons button0 and button1.
Returns a new custom message box instance with the specified parent, title, text and icon.
Up to three custom buttons may be specified with button0Text, button1Text and button2Text which are mapped to keys in a system specific way. The exec() return value for each of these buttons will be 0, 1 or 2 repspectively.
The defaultButtonNumber id is returned from exec if the dialog is simply "accepted" - usually by pressing the select key. Likewise the escapeButtonNumber is returned if the dialog is dismissed.
Opens a question message box with the title and text. The standard buttons button1 and button2 are added to the message box.
Returns the identity of the standard button that was activated.
If parent is 0, the message box becomes an application-global message box. If parent is a widget, the message box becomes modal relative to parent.
Sets the buttons on the message box to the standard buttons button1 and button2.
This is an overloaded member function, provided for convenience.
Sets the buttons on the message box to custom buttons.
Up to three custom buttons may be specified with button0Text, button1Text and button2Text which are mapped to keys in a system specific way. The exec() return value for each of these buttons will be 0, 1 or 2 repspectively.
The defaultButtonNumber id is returned from exec if the dialog is simply "accepted" - usually by pressing the select key. Likewise the escapeButtonNumber is returned if the dialog is dismissed.
Sets the message box icon.
See also icon().
Sets the icon to be used by the message box to pixmap.
See also icon().
Sets the message box text.
See also text().
Set an auto timeout value of timeoutMs milliseconds. The dialog will be automatically accepted as though the user pressed the button key after this time.
Sets the title text of the message box.
See also title().
Returns the message box text.
See also setText().
Returns the title text of the message box.
See also setTitle().
Opens a warning message box with the title and text. The standard buttons button1 and button2 are added to the message box.
Returns the identity of the standard button that was activated.
If parent is 0, the message box becomes an application-global message box. If parent is a widget, the message box becomes modal relative to parent.
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 qtextended4.4 | |
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