- Qt 6.11
- Qt Qml
- QML Lint Warning and Errors
- Import file selector
- Qt 6.11.1 Reference Documentation

# Import file selector

This warning category is spelled `[import-file-selector]` by qmllint.

This category is disabled by default due to current limitations in QML tooling towards QML modules with file selectors.

## Warnings occurred while importing

### What happened?

The QML tooling found ambiguous types in an imported module due to file selector usages in the imported module. The QML runtime selects the appropriate file based on a runtime configuration, while the QML tooling has no information on which file will be selected, creating the ambiguity.

### Why is that bad?

QML tooling can't use the import: the compiler can't compile this file to C++ and qmllint as well as QML Language Server can't provide useful warnings on that file.