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// Qt-Security score:significant
4
5#ifndef QQMLFILESELECTOR_H
6#define QQMLFILESELECTOR_H
7
8#include <QtCore/QObject>
9#include <QtCore/QUrl>
10#include <QtQml/QQmlEngine>
11#include <QtQml/qtqmlglobal.h>
12
14
15class QFileSelector;
16class QQmlFileSelectorPrivate;
17class Q_QML_EXPORT QQmlFileSelector : public QObject
18{
19 Q_OBJECT
20 Q_DECLARE_PRIVATE(QQmlFileSelector)
21public:
22 explicit QQmlFileSelector(QQmlEngine *engine, QObject *parent = nullptr);
23 ~QQmlFileSelector() override;
24 QFileSelector *selector() const noexcept;
25 void setSelector(QFileSelector *selector);
26 void setExtraSelectors(const QStringList &strings);
27
28#if QT_DEPRECATED_SINCE(6, 0)
29 QT_DEPRECATED static QQmlFileSelector *get(QQmlEngine*);
30#endif
31
32private:
33 Q_DISABLE_COPY(QQmlFileSelector)
34};
35
36QT_END_NAMESPACE
37
38#endif
A class for applying a QFileSelector to QML file loading.
Combined button and popup list for selecting options.