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
qiosmessagedialog.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 QIOSMESSAGEDIALOG_H
5#define QIOSMESSAGEDIALOG_H
6
7#include <QtCore/qeventloop.h>
8#include <qpa/qplatformdialoghelper.h>
9
12
14
16{
17public:
20
21 void exec() override;
22 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
23 void hide() override;
24
25private:
26 QEventLoop m_eventLoop;
27 UIAlertController *m_alertController;
28 QString messageTextPlain();
29 UIAlertAction *createAction(StandardButton button);
30 UIAlertAction *createAction(const QMessageDialogOptions::CustomButton &customButton);
31};
32
34
35#endif // QIOSMESSAGEDIALOG_H
36
\inmodule QtCore
Definition qeventloop.h:16
void exec() override
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPlatformMessageDialogHelper class allows for platform-specific customization of Message dialogs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtGui
Definition qwindow.h:63
QPushButton * button
[2]
Combined button and popup list for selecting options.
WindowModality
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
view show()
[18] //! [19]