MMessageBox provides a dialog for informing the user or for asking the user a question.
More...
Inherits MDialog.
List of all members.
Detailed Description
MMessageBox provides a dialog for informing the user or for asking the user a question.
A MMessageBox is a MDialog that displays text in its central area.
By default a MMessageBox has no central widget, but just the message text in its place. You can still add a central widget to it though, by calling setCentralWidget(). It will then be placed between the title bar and the message text.
Constructor & Destructor Documentation
MMessageBox::MMessageBox |
( |
const QString & |
text = QString() , |
|
|
M::StandardButtons |
standardButtons = M::OkButton | |
|
) |
| | |
Constructs a message box with the given text and set of standard buttons.
By default, the title bar will be hidden.
- Parameters:
-
| text | Text to be displayed in the message box. |
| standardButtons | Standard buttons to be put in the button box. |
- See also:
- M::StandardButtons
MMessageBox::MMessageBox |
( |
const QString & |
title, |
|
|
const QString & |
text, |
|
|
M::StandardButtons |
buttons = M::OkButton | |
|
) |
| | |
Constructs a message box with the given title, text and set of standard buttons.
- Parameters:
-
| title | Dialog's title to be displayed by the message. |
| text | Text to be displayed in the message box. |
| buttons | Standard buttons to be put in the button box. |
- See also:
- M::StandardButtons
MMessageBox::~MMessageBox |
( |
|
) |
[virtual] |
Member Function Documentation
QString MMessageBox::iconId |
( |
|
) |
const |
QPixmap MMessageBox::iconPixmap |
( |
|
) |
const |
Returns the dialog's icon pixmap.
By default it returns a null pixmap.
- Returns:
- Pixmap of the icon to be displayed in the message box.
- See also:
- setIconPixmap(), iconId(), setIconId()
void MMessageBox::setIconId |
( |
const QString & |
iconId |
) |
|
void MMessageBox::setIconPixmap |
( |
QPixmap & |
iconPixmap |
) |
|
void MMessageBox::setText |
( |
const QString & |
text |
) |
|
Sets the dialog's text.
- Parameters:
-
| text | Text to be displayed in the message box. |
- See also:
- text()
QString MMessageBox::text |
( |
|
) |
const |
Returns the dialog's text.
- Returns:
- Text being displayed in the message box.
- See also:
- setText()
Property Documentation
QString MMessageBox::iconId [read, write] |
QString MMessageBox::text [read, write] |