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().

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.