Unused imports¶
[unused-imports] Types of the imported module were not used.
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¶
To fix this warning, remove the unused import: