23#if QT_DEPRECATED_SINCE(6
, 11
)
24 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
27 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
28 QQmlFile(QQmlEngine *engine,
const QUrl &url);
30 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
31 QQmlFile(QQmlEngine *engine,
const QString &url);
33 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
36 enum Status { Null, Ready, Error, Loading };
38 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
41 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
44 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
47 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
48 bool isLoading()
const;
50 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
53 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
54 Status status()
const;
56 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
57 QString error()
const;
59 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
62 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
63 const char *data()
const;
65 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
66 QByteArray dataByteArray()
const;
68 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
69 void load(QQmlEngine *,
const QUrl &);
71 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
72 void load(QQmlEngine *,
const QString &);
74 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
77 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
78 void clear(QObject *object);
80#if QT_CONFIG(qml_network)
81 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
82 bool connectFinished(QObject *,
const char *);
84 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
85 bool connectFinished(QObject *,
int);
87 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
88 bool connectDownloadProgress(QObject *,
const char *);
90 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
91 bool connectDownloadProgress(QObject *,
int);
96 static bool isSynchronous(
const QString &url);
97 static bool isSynchronous(
const QUrl &url);
99 static bool isLocalFile(
const QString &url);
100 static bool isLocalFile(
const QUrl &url);
102 static QString urlToLocalFileOrQrc(
const QString &);
103 static QString urlToLocalFileOrQrc(
const QUrl &);
105 Q_DISABLE_COPY(QQmlFile)
107#if QT_DEPRECATED_SINCE(6
, 11
)