Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0
-
aa8d5a45930dcfce7f25878fa36c1595b1dfc023 (qt/qtdeclarative/dev)
Description
I get warning about code like this:
contentItem: Item { IconImage { id: icon anchors.top: parent.top anchors.topMargin: Screen.pixelDensity * 0.5
Warning: Property "pixelDensity" not found on type "QQuickScreen" at TabButton.qml:21:39 anchors.topMargin: Screen.pixelDensity * 0.5 ^^^^^^^^^^^^
The problem looks similar to https://bugreports.qt.io/browse/QTBUG-84300
The `QQuickScreen` has attached type to QQuickScreenAttached which prototype QQuickScreenInfo has property: Property
.
But
https://github.com/qt/qtdeclarative/blob/22d8db1e115b120ce2f62896eb7fea452348941e/tools/qmllint/checkidentifiers.cpp#L215
check only attached types to pixelDestiny no check for attached type to QQuickScreen .
Similar = caller that call checkMemberAccess should resolve attachedType of QQuickScreen.