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
qqmlapplicationengine_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion.
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 QQMLAPPLICATIONENGINE_P_H
5#define QQMLAPPLICATIONENGINE_P_H
6
8#include "qqmlengine_p.h"
9#include <QCoreApplication>
10#include <QFileInfo>
11#include <QLibraryInfo>
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists purely as an
18// implementation detail. This header file may change from version to
19// version without notice, or even be removed.
20//
21// We mean it.
22//
23
25
26class QFileSelector;
28{
29 Q_DECLARE_PUBLIC(QQmlApplicationEngine)
30public:
33 void ensureInitialized();
34 void init();
35 void cleanUp();
36
37 void startLoad(const QUrl &url, const QByteArray &data = QByteArray(), bool dataFlag = false);
38 void startLoad(QAnyStringView uri, QAnyStringView type);
39 void _q_loadTranslations();
40 void finishLoad(QQmlComponent *component);
41 void ensureLoadingFinishes(QQmlComponent *component);
42 QList<QObject *> objects;
46#if QT_CONFIG(translation)
47 std::unique_ptr<QTranslator> activeTranslator;
48#endif
49 bool isInitialized = false;
50};
51
53
54#endif
\inmodule QtCore
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
QQmlApplicationEngine provides a convenient way to load an application from a single QML file.
The QQmlComponent class encapsulates a QML component definition.
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
\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.
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
static void ensureInitialized()
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum type
static qreal component(const QPointF &point, unsigned int i)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QUrl url("example.com")
[constructor-url-reference]