Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QERRORMESSAGE_H
5#define QERRORMESSAGE_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8
9#include <QtWidgets/qdialog.h>
10
11QT_REQUIRE_CONFIG(errormessage);
12
14
16
17class Q_WIDGETS_EXPORT QErrorMessage: public QDialog
18{
20 Q_DECLARE_PRIVATE(QErrorMessage)
21public:
22 explicit QErrorMessage(QWidget* parent = nullptr);
24
25 static QErrorMessage * qtHandler();
26
27public Q_SLOTS:
28 void showMessage(const QString &message);
29 void showMessage(const QString &message, const QString &type);
30
31protected:
32 void done(int) override;
33 void changeEvent(QEvent *e) override;
34
35private:
36 Q_DISABLE_COPY(QErrorMessage)
37};
38
40
41#endif // QERRORMESSAGE_H
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
The QErrorMessage class provides an error message display dialog.
\inmodule QtCore
Definition qcoreevent.h:45
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
Combined button and popup list for selecting options.
GLenum type
GLuint GLsizei const GLchar * message
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS
splash showMessage("Loaded modules")