Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QAbstractMessageBox class allows developers to replace the message box portion of the Qt Extended server UI. More...
#include <QAbstractMessageBox>
Inherits QDialog.
Inherited by PhoneMessageBox and SlideInMessageBox.
The QAbstractMessageBox class allows developers to replace the message box portion of the Qt Extended server UI.
The abstract message box is part of the server widgets framework and represents the portion of the Qt Extended server UI that is shown to users when a message box is needed.
A small tutorial on how to develop new server widgets using one of the abstract widgets as base can be found in QAbstractServerInterface class documentation.
The QAbstractMessageBox API is intentionally designed to be similar to the QMessageBox API to facilitate easily replacing one with the other.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
Represents a standard button that may be displayed on the message box.
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.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |