Obsolete Members for QQmlFileSelector

QQmlFileSelector 类的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。

静态公共成员

(deprecated in 6.0) QQmlFileSelector *get(QQmlEngine *engine)

成员函数文档

[static, deprecated in 6.0] QQmlFileSelector *QQmlFileSelector::get(QQmlEngine *engine)

自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

文件选择器一旦设置完毕,就不应再对其进行访问。它可能正在被使用。更多详细信息请参见下文。

获取目标engine 上当前处于活动状态的QQmlFileSelector 。

此方法已弃用。设置文件选择器后,不应从引擎中检索该选择器,因为它可能正在被使用。

如果此处传递的engine 是一个尚未加载任何QML文件的QQmlApplicationEngine ,则该对象将被初始化。此后对QQmlApplicationEngine::setExtraFileSelectors()的任何调用均不会产生效果。

另请参阅 QQmlApplicationEngine 。

© 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.