Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.10.0 Beta1
-
None
Description
With this code
import QtQuick
Item {
DropArea {
onDropped: (drop) => {
console.log(drop.hasUrls)
}
}
}
qmllint will complain
/Users/user/Qt/6.10.0/macos/bin/qmllint test.qml Warning: test.qml:8:24: Reading non-constant and non-notifiable property hasUrls. Binding might not update when the property changes. [stale-property-read] console.log(drop.hasUrls) ^^^^^^^
But onDropped is not a binding so this warning is bogus and in my opinion it is more than ok to use/read that property since you want to use it only "at that point in time".
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-138346 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
659494,2 | RFC: qmllint: Do not warn about unnotifiable properties outside bindings | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |