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
qqmlstandardpaths_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QQMLSTANDARDPATHS_P_H
5#define QQMLSTANDARDPATHS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtCore/qstandardpaths.h>
20#include <QtCore/qurl.h>
21#include <QtQml/qqml.h>
22#include <QtQmlCore/private/qqmlcoreglobal_p.h>
23
25
26class QQmlEngine;
27class QJSEngine;
28
29class Q_QMLCORE_EXPORT QQmlStandardPaths : public QObject
30{
33 QML_NAMED_ELEMENT(StandardPaths)
36
37public:
38 explicit QQmlStandardPaths(QObject *parent = nullptr);
39
41 Q_INVOKABLE QUrl findExecutable(const QString &executableName, const QStringList &paths = QStringList()) const;
43 QStandardPaths::LocateOptions options = QStandardPaths::LocateFile) const;
45 QStandardPaths::LocateOptions options = QStandardPaths::LocateFile) const;
46 Q_INVOKABLE QList<QUrl> standardLocations(QStandardPaths::StandardLocation type) const;
48};
49
51
52#endif // QQMLSTANDARDPATHS_P_H
The QJSEngine class provides an environment for evaluating JavaScript code.
Definition qjsengine.h:26
\inmodule QtCore
Definition qobject.h:103
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
\inmodule QtCore
StandardLocation
This enum describes the different locations that can be queried using methods such as QStandardPaths:...
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
static QString displayName(CGDirectDisplayID displayID)
QList< QString > QStringList
Constructs a string list that contains the given string, str.
GLenum type
GLsizei const GLuint * paths
#define QML_NAMED_ELEMENT(NAME)
#define QML_SINGLETON
#define QML_EXTENDED_NAMESPACE(EXTENDED_NAMESPACE)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_OBJECT
#define Q_INVOKABLE