このページでは

ファイルインポート選択画面

この警告カテゴリは、qmllint によって「[import-file-selector] 」と表記されます。

ファイル選択機能を備えたQMLモジュールに対するQMLツールの現在の制限により、このカテゴリはデフォルトで無効になっています。

インポート中に警告が発生しました

何が起きたのか?

インポートされたモジュール内でファイルセレクタが使用されていたため、QML ツールチェーンは、インポートされたモジュール内に曖昧な型を検出しました。QML Runtimeは、ランタイム構成に基づいて適切なファイルを選択しますが、QML ツールチェーンにはどのファイルが選択されるかに関する情報がないため、曖昧さが生じています。

なぜ問題になるのですか?

QML ツールチェーンはこのインポートを使用できません。コンパイラはこのファイルを C++ にコンパイルできず、qmllintも QML Language Server そのファイルに関して有益な警告を提供できません。

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