The QMessageBox widget provides a modal message box. (details) (complete member list)
#include <qmsgbox.h>
Inherits QDialog.
A message box is a modal view that displays a text and contains a push button.
The default push button text is "Ok". This can be changed with setButtonText().
Enabling auto-resizing will make a message box resize itself whenever the contents change.
Example of use:
QMessageBox mb;
mb.setText( "This program may crash your hardware!!!\nLet's start..." );
mb.setButtonText( "Yes!" );
mb.exec();
Constructs a message box with no text and a button with the text "Ok".
If parent is 0, then the message box becomes an application-global modal dialog box. If parent is a real widget, the message box becomes modal relative to parent.
The parent and name arguments are passed to the QDialog constructor.
Adjusts the size of the message box to fit the contents just before QDialog::exec() or QDialog::show() is called.
This function will not be called if the message box has been explicitly resized before showing it.
Returns the push button text currently set, or null if no text has been set.
See also: setButtonText().
Opens a message box directly using the specified parameters.
Example of use:
QMessageBox::message( "Warning", "Did you feed the giraffe", "Sorry" );
Internal geometry management.
Sets the push button text to be displayed.
The default push button text is "Ok".
See also: buttonText().
Sets the message box text to be displayed.
See also: text().
Returns the message box text currently set, or null if no text has been set.
See also: setText().
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: