Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Id quotation

This warning category is spelled [syntax.id-quotation] by qmllint.

Ids do not need quotation marks

What happened?

You surrounded an id with quotation marks.

Why is this bad?

This might lead to confusion between ids and strings. The QML language does not require quotation marks for ids and forbids more complex string expressions for ids.

Example

import QtQuick

Item {
    id: "root"
}

To fix this warning, remove the quotation marks:

import QtQuick

Item {
    id: root
}
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded