以下成员源于类 QQmlFileSelector 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated (6.0))
QQmlFileSelector *
|
get (QQmlEngine * engine ) |
[static]
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 .