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 .