Cadenas multilínea
Esta categoría de advertencia se escribe [multiline-strings] por qmllint.
La cadena contiene un terminador de línea sin mayúsculas, que está obsoleto.
¿Qué ha ocurrido?
Una cadena abarca varias líneas.
¿Por qué es malo?
Las cadenas que abarcan varias líneas son una extensión no estándar de ECMAScript y están obsoletas en QML. Utiliza en su lugar literales de plantilla.
Ejemplo
import QtQuick Item { property string multiLine: "first second third" property string multiLine2: 'first second third' }
Para corregir esta advertencia, utilice literales de plantilla o, alternativamente, sustituya las nuevas líneas por '\n':
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.