Obsolete Members for QQmlFile

The following members of class QQmlFile are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Types

(deprecated in 6.11) enum Status { Null, Ready, Error, Loading }

Public Functions

(deprecated in 6.11) void clear()
(deprecated in 6.11) void clear(QObject *object)
(deprecated in 6.11) bool connectDownloadProgress(QObject *object, const char *method)
(deprecated in 6.11) bool connectDownloadProgress(QObject *object, int method)
(deprecated in 6.11) bool connectFinished(QObject *object, int method)
(deprecated in 6.11) const char *data() const
(deprecated in 6.11) QByteArray dataByteArray() const
(deprecated in 6.11) QString error() const
(deprecated in 6.11) void load(QQmlEngine *engine, const QString &url)
(deprecated in 6.11) void load(QQmlEngine *engine, const QUrl &url)
(deprecated in 6.11) qint64 size() const

Member Type Documentation

[deprecated in 6.11] enum QQmlFile::Status

This enum is deprecated since 6.11. We strongly advise against using it in new code.

ConstantValue
QQmlFile::Null0
QQmlFile::Ready1
QQmlFile::Error2
QQmlFile::Loading3

Member Function Documentation

[deprecated in 6.11] void QQmlFile::clear()

This function is deprecated since 6.11. We strongly advise against using it in new code.

[deprecated in 6.11] void QQmlFile::clear(QObject *object)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Redirects to the other clear() overload, ignoring object.

[deprecated in 6.11] bool QQmlFile::connectDownloadProgress(QObject *object, const char *method)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Connects method of object to the internal downloadProgress signal.

[deprecated in 6.11] bool QQmlFile::connectDownloadProgress(QObject *object, int method)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Connects method of object to the internal downloadProgress signal.

[deprecated in 6.11] bool QQmlFile::connectFinished(QObject *object, int method)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Connects method of object to the internal finished signal.

[deprecated in 6.11] const char *QQmlFile::data() const

This function is deprecated since 6.11. We strongly advise against using it in new code.

[deprecated in 6.11] QByteArray QQmlFile::dataByteArray() const

This function is deprecated since 6.11. We strongly advise against using it in new code.

[deprecated in 6.11] QString QQmlFile::error() const

This function is deprecated since 6.11. We strongly advise against using it in new code.

[deprecated in 6.11] void QQmlFile::load(QQmlEngine *engine, const QString &url)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Loads content at url using engine.

[deprecated in 6.11] void QQmlFile::load(QQmlEngine *engine, const QUrl &url)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Loads content at url using engine.

[deprecated in 6.11] qint64 QQmlFile::size() const

This function is deprecated since 6.11. We strongly advise against using it in new code.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.