|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# Obsolete Members for QMessageBox

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

- QMessageBox class reference

### Static Public Members

- void about ( QWidget * parent, const QString & caption, const QString & text ) `(obsolete)`
- void aboutQt ( QWidget * parent, const QString & caption = QString() ) `(obsolete)`

## Member Function Documentation

### void QMessageBox::about ( QWidget * parent, const QString & caption, const QString & text ) `[static]`

Displays a simple about box with caption caption and text text. The about box's parent is parent.

about() looks for a suitable icon in four locations:

1. It prefers parent->icon() if that exists.
2. If not, it tries the top-level widget containing parent.
3. If that fails, it tries the active window.
4. As a last resort it uses the Information icon.

The about box has a single button labelled "OK".

See also QWidget::windowIcon() and QApplication::activeWindow().

### void QMessageBox::aboutQt ( QWidget * parent, const QString & caption = QString() ) `[static]`

Displays a simple message box about Qt, with caption caption and centered over parent (if parent is not 0). The message includes the version number of Qt being used by the application.

This is useful for inclusion in the Help menu of an application. See the examples/menu/menu.cpp example.

QApplication provides this functionality as a slot.

See also QApplication::aboutQt().