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
qqmlfileselector.h
Go to the documentation of this file.
1// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
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 QQMLFILESELECTOR_H
5#define QQMLFILESELECTOR_H
6
7#include <QtCore/QObject>
8#include <QtCore/QUrl>
9#include <QtQml/QQmlEngine>
10#include <QtQml/qtqmlglobal.h>
11
13
14class QFileSelector;
15class QQmlFileSelectorPrivate;
16class Q_QML_EXPORT QQmlFileSelector : public QObject
17{
18 Q_OBJECT
19 Q_DECLARE_PRIVATE(QQmlFileSelector)
20public:
21 explicit QQmlFileSelector(QQmlEngine *engine, QObject *parent = nullptr);
22 ~QQmlFileSelector() override;
23 QFileSelector *selector() const noexcept;
24 void setSelector(QFileSelector *selector);
25 void setExtraSelectors(const QStringList &strings);
26
27#if QT_DEPRECATED_SINCE(6, 0)
28 QT_DEPRECATED static QQmlFileSelector *get(QQmlEngine*);
29#endif
30
31private:
32 Q_DISABLE_COPY(QQmlFileSelector)
33};
34
35QT_END_NAMESPACE
36
37#endif
A class for applying a QFileSelector to QML file loading.