Details
-
Technical task
-
Resolution: Fixed
-
P3: Somewhat important
-
-
23fdccf7f3d4ace5b0cb9f04d9b941a1235629b8 a8645614685549838daf65e98a1fdbb6201c1482
Description
There is a qmlsc warning produced when trying to make an arg call on qStr.
For example:
qStr("Hello").arg("World")
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.
Attachments
Issue Links
- relates to
-
QTBUG-100204 qsTr + arg: Property "arg" not found on type "void"
- Closed
-
QTBUG-102636 Extend QML String object with one-pass equivalent of QString::arg()
- Reported
For Gerrit Dashboard: QTBUG-101387 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
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 |