Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
Constructs a message box with the given parent, name, and window flags, f. The window title is specified by title, and the message box displays message text and an icon specified by text and icon.
The buttons that the user can access to respond to the message are defined by button0, button1, and button2.
Constructs a message box with the given parent and name.
Opens a modal message box with the given title and showing the given text. The message box has a single button which has the given buttonText (or tr("OK")). The message box is centred over its parent and is called name.
Use information(), warning(), question(), or critical() instead.
For example, if you have code like
QMessageBox::message(tr("My App"), tr("All occurrences replaced."), tr("Close"), this);
you can rewrite it as
QMessageBox::information(this, tr("My App"), tr("All occurrences replaced."), QMessageBox::Close);
Queries the user using a modal message box with up to two buttons. The message box has the given caption (although some window managers don't show it), and shows the given text. The left button has the yesButtonText (or tr("OK")), and the right button has the noButtonText (or isn't shown). The message box is centred over its parent and is called name.
Use information(), question(), warning(), or critical() instead.
Returns the pixmap used for a standard icon. This allows the pixmaps to be used in more complex message boxes. icon specifies the required icon, e.g. QMessageBox::Information, QMessageBox::Warning or QMessageBox::Critical.
style is unused.
Copyright © 2008 Nokia | Trademarks | Qt 4.4.3 |