The QMessageBox widget provides a message box. More...
#include <qmsgbox.h>
Inherits QDialog.
A message box is a dialog that displays a text and 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.show();
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 widget, the message box becomes modal relative to parent.
The parent and name arguments are passed to the QDialog constructor.
[virtual]
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.
Reimplemented from QWidget.
Returns the push button text currently set, or null if no text has been set.
See also: setButtonText().
[static]
Opens a modal message box directly using the specified parameters.
Example:
QMessageBox::message( "Warning", "Did you feed the giraffe?", "Sorry!" );
Examples: widgets/widgets.cpp
[virtual protected]
Internal geometry management.
Reimplemented from QWidget.
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-96 Troll Tech, all rights reserved.
It was generated from the following files: