- Qt 6.11
- Qt Qml
- Qt Qml Tooling
- qmllint
- QML Lint Warning and Errors
- Unused imports
- Qt 6.11.1 Reference Documentation

Unterminated non-empty case block ◦ Use proper function

# 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 {}

Unterminated non-empty case block ◦ Use proper function