Qt 6.x
The Qt SDK
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
virtual void done(int)
Closes the dialog and sets its result code to r.
Definition qdialog.cpp:598
The QErrorMessage class provides an error message display dialog.
\inmodule QtCore
Definition qcoreevent.h:45
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
virtual void changeEvent(QEvent *)
This event handler can be reimplemented to handle state changes.
Definition qwidget.cpp:9428
double e
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")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent