Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.2
-
None
-
-
b027c76d1 (dev), 26ccb0081 (6.8)
Description
We have the following QML file:
Item {
id: root
readonly property MyController controller: MyController {
id: controller
}
property alias threadPool: controller.threadPool // qmllint disable missing-type
[...]
The code triggers the qmllint warning:
[build] Warning: /home/user/Src/Project/qml/MyPage.qml:32:1: Cannot deduce type of alias "threadPool" [missing-type]
[build] Item {
[build] ^^^^
There are multiple things that seem incorrect:
- The line number in the error message points to Item instead of the actual type threadPool?
- Why does the disable not work inline on the warning?
Attachments
Issue Links
- depends on
-
QTBUG-127535 dom powered quick fixes/warnings messages in qmllint
-
- Reported
-
For Gerrit Dashboard: QTBUG-128932 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
597549,2 | QQmlJSMetaProperty: add sourcelocation if defined in QML | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
599635,2 | QQmlJSMetaProperty: add sourcelocation if defined in QML | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |