Type: Technical task
Priority: P3: Somewhat important
Fix Version/s: 6.5.0 FF
There is a qmlsc warning produced when trying to make an arg call on qStr.
This will result in the following warning
Warning: main.qml:7:29: Property "arg" not found on type "void"
title: qsTr("Hello %1").arg("World")
It is suspected that type info for qsTr does not say it returns a string, as someone should be able to call arg() on it. It should be noted that this appears to only occur on linux, could not re-produce this warning on windows.
|For Gerrit Dashboard: QTBUG-101387|
|413031,2||WIP: Special case qsTr and friends in qmljsrootgen||dev||qt/qtdeclarative||Status: ABANDONED||-2||0|
|413058,10||QmlCompiler: Inline translation methods||dev||qt/qtdeclarative||Status: MERGED||+2||0|
|414356,7||QmlCompiler: Inline String.arg() into generated code||dev||qt/qtdeclarative||Status: MERGED||+2||0|