22#if QT_DEPRECATED_SINCE(6
, 11
)
23 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
26 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
27 QQmlFile(QQmlEngine *engine,
const QUrl &url);
29 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
30 QQmlFile(QQmlEngine *engine,
const QString &url);
32 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
35 enum Status { Null, Ready, Error, Loading };
37 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
40 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
43 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
46 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
47 bool isLoading()
const;
49 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
52 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
53 Status status()
const;
55 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
56 QString error()
const;
58 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
61 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
62 const char *data()
const;
64 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
65 QByteArray dataByteArray()
const;
67 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
68 void load(QQmlEngine *,
const QUrl &);
70 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
71 void load(QQmlEngine *,
const QString &);
73 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
76 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
77 void clear(QObject *object);
79#if QT_CONFIG(qml_network)
80 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
81 bool connectFinished(QObject *,
const char *);
83 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
84 bool connectFinished(QObject *,
int);
86 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
87 bool connectDownloadProgress(QObject *,
const char *);
89 QT_DEPRECATED_VERSION_X_6_11(
"Use QQmlComponent or the QML engine for loading files.")
90 bool connectDownloadProgress(QObject *,
int);
95 static bool isSynchronous(
const QString &url);
96 static bool isSynchronous(
const QUrl &url);
98 static bool isLocalFile(
const QString &url);
99 static bool isLocalFile(
const QUrl &url);
101 static QString urlToLocalFileOrQrc(
const QString &);
102 static QString urlToLocalFileOrQrc(
const QUrl &);
104 Q_DISABLE_COPY(QQmlFile)
106#if QT_DEPRECATED_SINCE(6
, 11
)