Invalid qmllint directives | Qt Qml | Qt 6.11.1
Description: [invalid-lint-directive] Invalid qmllint comments.

- Qt 6.11
- Qt Qml
- Qt Qml Tooling
- qmllint
- QML Lint Warning and Errors
- Invalid qmllint directives
- Qt 6.11.1 Reference Documentation

Inheritance cycle ◦ Literal constructor

# Invalid qmllint directives

This warning category is spelled `[invalid-lint-directive]` by qmllint.

## Invalid qmllint directive provided

### What happened?

You used an invalid qmllint directive in a qmllint comment. This is probably due to a typo.

### Why is this bad?

The qmllint directive has no effect.

### Example

     import QtQuick

     Item {
         // qmllint diasble with
     }

To fix this warning, correct the typo:

     import QtQuick

     Item {
         // qmllint disable with
     }

## Qmllint directive on unknown category

### What happened?

You used an unknown category in a qmllint directive inside a qmllint comment. This is probably due to a typo.

### Why is this bad?

The qmllint directive has no effect.

### Example

     import QtQuick

     Item {
         // qmllint disable woth
     }

To fix this warning, correct the typo:

     import QtQuick

     Item {
         // qmllint disable with
     }

Inheritance cycle ◦ Literal constructor