Strings com várias linhas
Essa categoria de aviso é denominada “ [multiline-strings] ” pelo qmllint.
A string contém um terminador de linha sem escape, o que está obsoleto
O que aconteceu?
Uma string se estende por várias linhas.
Por que isso é ruim?
Strings que se estendem por várias linhas são uma extensão não padronizada do ECMAScript e estão obsoletas no QML. Use literais de modelo em vez disso.
Exemplo
import QtQuick
Item {
property string multiLine: "first
second
third"
property string multiLine2: 'first
second
third'
}Para corrigir esse aviso, use literais de modelo ou, como alternativa, substitua as quebras de linha 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.