Uncreatable type¶
[uncreatable-type] Types that can’t be created.
This warning category is spelled [uncreatable-type] by qmllint.
Namespace must start with an upper case letter¶
What happened?¶
You used a QML object from a lower-case namespace.
Why is this bad?¶
The QML language forbids lower-case namespaces.
Example¶
To fix the warning, rename the namespace to start with a capital letter:
Singleton type is not creatable¶
What happened?¶
You tried to instantiate a QML object from a singleton type .
Why is this bad?¶
The QML language forbids instantiations of singletons.
Example¶
To fix the warning, use the singleton directly without instantiating it:
Type is not creatable¶
What happened?¶
You tried to instantiate a QML object from an uncreatable type .
Why is this bad?¶
Uncreatable types are specifically marked to forbid instantiations. You might be misusing a type that should only be used as an attached type or as an interface.
Example¶
Attached type misuse¶
To fix the warning, use the Keys attached type instead of instantiating it:
Interface misuse¶
To fix the warning, use a more specific derived type like TapHandler: