Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4
Description
I built qmllint from (qtdeclarative 9883b04326660b606857c852a9059e8b50483a76).
And for some reason qmllint thinks that qsTr return void instead of string:
import QtQuick 2.15 Item { id: myItem property string x: "aaa" property string y: qsTr("Some text %1").arg(myItem.x) }
❯ /usr/local/qt6_tools/bin/qmllint Test.qml Warning: Test.qml:6:42: Property "arg" not found on type "void" property string y: qsTr("Some text %1").arg(myItem.x) ^^^
Attachments
Issue Links
- relates to
-
QTBUG-101387 Provide specialization for qsTr and string.arg()
- Closed