MessageManager Namespace | Extending Qt Creator Manual
Description: The MessageManager namespace is used to post messages in the General Messages pane.

- Extending Qt Creator Manual
- MessageManager Namespace
- Extending Qt Creator Manual 15.0.0

# MessageManager Namespace

Core::MessageManager

The MessageManager namespace is used to post messages in the General Messages pane. More...

Header: | `#include <coreplugin/messagemanager.h>`

## Functions

void | writeDisrupting(const QString &message)
void | writeDisrupting(const QStringList &messages)
void | writeFlashing(const QString &message)
void | writeFlashing(const QStringList &messages)
void | writeSilently(const QString &message)
void | writeSilently(const QStringList &messages)

## Detailed Description

## Function Documentation

### void MessageManager::writeDisrupting(const QString &message)

Writes the message to the General Messages pane and brings the pane to the front.

This might interrupt a user's workflow, so only use this as a direct response to something a user did, like explicitly running a tool.

See also writeSilently() and writeFlashing().

### void MessageManager::writeDisrupting(const QStringList &messages)

This function overloads writeDisrupting().

### void MessageManager::writeFlashing(const QString &message)

Writes the message to the General Messages pane and flashes the output pane button.

This notifies the user that something important has happened that might require the user's attention. Use sparingly, since continually flashing the button is annoying, especially if the condition is something the user might not be able to fix.

See also writeSilently() and writeDisrupting().

### void MessageManager::writeFlashing(const QStringList &messages)

This function overloads writeFlashing().

### void MessageManager::writeSilently(const QString &message)

Writes the message to the General Messages pane without any further action.

This is the preferred method of posting messages, since it does not interrupt the user.

See also writeFlashing() and writeDisrupting().

### void MessageManager::writeSilently(const QStringList &messages)

This function overloads writeSilently().