Obsolete Members for QQmlEngine
QQmlEngine クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
(deprecated in 6.4) bool | importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors) |
(deprecated) QQmlAbstractUrlInterceptor * | urlInterceptor() const |
メンバー関数のドキュメント
[deprecated in 6.4] bool QQmlEngine::importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors)
この関数はバージョン 6.4 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
代わりに、QML から「import」文を使用してモジュールをインポートしてください。
filePath という名前のプラグインを、指定されたuri を使用してインポートします。プラグインのインポートに成功した場合は true を返し、失敗した場合は false を返します。
失敗した場合、かつ null でない場合、errors リストの先頭に発生したエラーが追加されます。
プラグインは、QQmlEngineExtensionPlugin インターフェースを実装したQtプラグインである必要があります。
注: このようにプラグインを直接 読み込むと、モジュールのインポートロジックが混乱する可能性があります。インポートロジックが特定の場所からプラグインを読み込むようにするには、addPluginPath() を使用できます。各プラグインは、「import」ステートメントを使用してインポートできる QML モジュールの一部である必要があります。
[deprecated] QQmlAbstractUrlInterceptor *QQmlEngine::urlInterceptor() const
この関数は非推奨です。新しいコードでの使用は強くお勧めしません。
このAPIは5.1ではプライベートです
直近のQQmlAbstractUrlInterceptor を返します。GUIスレッド外でこのオブジェクトを変更してはなりません。
© 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.