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

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