Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qerrormessage.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QERRORMESSAGE_H
6#define QERRORMESSAGE_H
7
8#include <QtWidgets/qtwidgetsglobal.h>
9
10#include <QtWidgets/qdialog.h>
11
13
14QT_BEGIN_NAMESPACE
15
16class QErrorMessagePrivate;
17
18class Q_WIDGETS_EXPORT QErrorMessage: public QDialog
19{
20 Q_OBJECT
21 Q_DECLARE_PRIVATE(QErrorMessage)
22public:
23 explicit QErrorMessage(QWidget* parent = nullptr);
24 ~QErrorMessage();
25
26 static QErrorMessage * qtHandler();
27
28public Q_SLOTS:
29 void showMessage(const QString &message);
30 void showMessage(const QString &message, const QString &type);
31
32protected:
33 void done(int) override;
34 void changeEvent(QEvent *e) override;
35
36private:
37 Q_DISABLE_COPY(QErrorMessage)
38};
39
40QT_END_NAMESPACE
41
42#endif // QERRORMESSAGE_H
void helperPrepareShow(QPlatformDialogHelper *) override
void initHelper(QPlatformDialogHelper *) override
bool isMessageToBeShown(const QString &message, const QString &type) const
std::queue< Message > pending
void setVisible(bool) override
The QErrorMessage class provides an error message display dialog.
static QString msgType2i18nString(QtMsgType t)
static bool metFatal
static void deleteStaticcQErrorMessage()
static QErrorMessage * qtMessageHandler
static QtMessageHandler originalMessageHandler
static void jump(QtMsgType t, const QMessageLogContext &context, const QString &m)
QT_REQUIRE_CONFIG(errormessage)