Obsolete Members for QQmlFileSelector

以下成员源于类 QQmlFileSelector 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

静态公共成员

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

成员函数文档编制

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

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

The file selector should not be accessed after it is set. It may be in use. See below for further details.

获取 QQmlFileSelector currently active on the target engine .

This method is deprecated. You should not retrieve the files selector from an engine after setting it. It may be in use.

engine passed here is a QQmlApplicationEngine that hasn't loaded any QML files, yet, it will be initialized. Any later calls to QQmlApplicationEngine::setExtraFileSelectors () 没有起作用。

另请参阅 QQmlApplicationEngine .