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
qiosfiledialog.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 QIOSFILEDIALOG_H
5#define QIOSFILEDIALOG_H
6
7#include <QtCore/qeventloop.h>
8#include <qpa/qplatformdialoghelper.h>
9
11
13
15{
16public:
19
20 void exec() override;
21 bool defaultNameFilterDisables() const override { return false; }
22 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
23 void hide() override;
24 void setDirectory(const QUrl &) override {}
25 QUrl directory() const override { return QUrl(); }
26 void selectFile(const QUrl &) override {}
27 QList<QUrl> selectedFiles() const override;
28 void setFilter() override {}
29 void selectNameFilter(const QString &) override {}
30 QString selectedNameFilter() const override { return QString(); }
31
32 void selectedFilesChanged(const QList<QUrl> &selection);
33
34private:
35 QUrl m_directory;
36 QList<QUrl> m_selection;
37 QEventLoop m_eventLoop;
38 UIViewController *m_viewController;
39
40 bool showImagePickerDialog(QWindow *parent);
41 bool showNativeDocumentPickerDialog(QWindow *parent);
42 void showImagePickerDialog_helper(QWindow *parent);
43};
44
46
47#endif // QIOSFILEDIALOG_H
48
\inmodule QtCore
Definition qeventloop.h:16
void setDirectory(const QUrl &) override
void hide() override
QUrl directory() const override
QList< QUrl > selectedFiles() const override
void selectFile(const QUrl &) override
void setFilter() override
QString selectedNameFilter() const override
void selectedFilesChanged(const QList< QUrl > &selection)
bool defaultNameFilterDisables() const override
void exec() override
void selectNameFilter(const QString &) override
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPlatformFileDialogHelper class allows for platform-specific customization of file dialogs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
WindowModality
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
view show()
[18] //! [19]
QItemSelection * selection
[0]