Obsolete Members for QQmlFile
类QQmlFile 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。
公共类型
(deprecated in 6.11) enum | Status { Null, Ready, Error, Loading } |
公共函数
(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 |
成员类型文档
[deprecated in 6.11] enum QQmlFile::Status
自 6.11 版起,该枚举已被弃用。我们强烈建议不要在新代码中使用它。
| 常量 | 值 |
|---|---|
QQmlFile::Null | 0 |
QQmlFile::Ready | 1 |
QQmlFile::Error | 2 |
QQmlFile::Loading | 3 |
成员函数文档
[deprecated in 6.11] void QQmlFile::clear()
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
[deprecated in 6.11] void QQmlFile::clear(QObject *object)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
重定向到其他 clear() 重载,忽略object 。
[deprecated in 6.11] bool QQmlFile::connectDownloadProgress(QObject *object, const char *method)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
将method 的object 连接到内部downloadProgress 信号。
[deprecated in 6.11] bool QQmlFile::connectDownloadProgress(QObject *object, int method)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
将method 的object 连接到内部downloadProgress 信号。
[deprecated in 6.11] bool QQmlFile::connectFinished(QObject *object, int method)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
将method 的object 连接到内部finished 信号。
[deprecated in 6.11] const char *QQmlFile::data() const
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
[deprecated in 6.11] QByteArray QQmlFile::dataByteArray() const
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
[deprecated in 6.11] QString QQmlFile::error() const
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
[deprecated in 6.11] void QQmlFile::load(QQmlEngine *engine, const QString &url)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
使用engine 在url 加载内容。
[deprecated in 6.11] void QQmlFile::load(QQmlEngine *engine, const QUrl &url)
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
使用engine 在url 加载内容。
[deprecated in 6.11] qint64 QQmlFile::size() const
自 6.11 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
© 2026 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.