7#include <QtCore/qurl.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qmap.h>
10#include <QtQml/qjsengine.h>
11#include <QtQml/qqml.h>
12#include <QtQml/qqmlerror.h>
13#include <QtQml/qqmlabstracturlinterceptor.h>
30 ForceAsynchronousImageLoading = 0x01
51#if QT_CONFIG(qml_network)
53class QQmlNetworkAccessManagerFactory;
58 Q_PROPERTY(
QString offlineStoragePath READ offlineStoragePath WRITE setOfflineStoragePath NOTIFY offlineStoragePathChanged)
66 void clearComponentCache();
67 void trimComponentCache();
68 void clearSingletons();
78#if QT_DEPRECATED_SINCE(6, 0)
83#if QT_DEPRECATED_SINCE(6, 4)
89#if QT_CONFIG(qml_network)
90 void setNetworkAccessManagerFactory(QQmlNetworkAccessManagerFactory *);
91 QQmlNetworkAccessManagerFactory *networkAccessManagerFactory()
const;
96#if QT_DEPRECATED_SINCE(6, 0)
99 addUrlInterceptor(urlInterceptor);
111 void removeImageProvider(
const QString &
id);
116 void setOfflineStoragePath(
const QString&
dir);
117 QString offlineStoragePath()
const;
118 QString offlineStorageDatabaseFilePath(
const QString &databaseName)
const;
121 void setBaseUrl(
const QUrl &);
123 bool outputWarningsToStandardError()
const;
124 void setOutputWarningsToStandardError(
bool);
126 void markCurrentFunctionAsTranslationBinding();
165 return qobject_cast<T>(singletonInstance<QJSValue>(
qmlTypeId).toQObject());
174 return qobject_cast<T>(singletonInstance<QJSValue>(uri,
typeName).toQObject());
The QJSEngine class provides an environment for evaluating JavaScript code.
The QJSValue class acts as a container for Qt/JavaScript data types.
The QNetworkAccessManager class allows the application to send network requests and receive replies.
DataType
Specifies where URL interception is taking place.
The QQmlComponent class encapsulates a QML component definition.
The QQmlContext class defines a context within a QML engine.
The QQmlEngine class provides an environment for instantiating QML components.
void offlineStoragePathChanged()
This signal is emitted when \l offlineStoragePath changes.
void warnings(const QList< QQmlError > &warnings)
This signal is emitted when warnings messages are generated by QML.
void quit()
This signal is emitted when the QML loaded by the engine would like to quit.
void exit(int retCode)
This signal is emitted when the QML loaded by the engine would like to exit from the event loop with ...
T singletonInstance(int qmlTypeId)
\qmlproperty string Qt::uiLanguage
The QQmlExpression class evaluates JavaScript in a QML context.
The QQmlImageProviderBase class is used to register image providers in the QML engine.
virtual Flags flags() const =0
Implement this to return the properties of this image provider.
virtual ImageType imageType() const =0
Implement this method to return the image type supported by this image provider.
Flag
Defines specific requirements or features of this image provider.
ImageType
Defines the type of image supported by this image provider.
QQmlIncubationController instances drive the progress of QQmlIncubators.
The QQuickImageProvider class provides an interface for supporting pixmaps and threaded image request...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLsizei const GLuint * paths
int qmlTypeId(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
#define QT_DEPRECATED_VERSION_X_6_4(text)
QUrl url("example.com")
[constructor-url-reference]