- Qt 6.10
- Qt Qml
- QML Lint Warning and Errors
- Unused imports
- Qt 6.10.3 Reference Documentation

# Unused imports

This warning category is spelled `[unused-imports]` by qmllint.

## Unused import

### What happened?

You used an import statement to import a QML module, but did not use any of its types.

### Why is this bad?

The import statement states a dependency to a QML module which is actually not needed. This affects the readability of the code and the performance of the QML engine and tooling by making them process an unnecessary QML module.

### Example

     import QtQuick
     import QtQuick.Controls

     Item {}

To fix this warning, remove the unused import:

     import QtQuick

     Item {}