-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10.0 Beta1
-
None
Using this code:
DropArea { id: dropAreag anchors.fill: parent keys: ["application/x-color"] onDropped: drop => { if (drop.hasColor) { if (drop.proposedAction === Qt.CopyAction) { internal.setColor(drop.colorData); drop.acceptProposedAction(); } } } onEntered: drag => { if (!drag.hasColor) { drag.accepted = false; } } }
Linter gives:
Reading non-constant and non-notifiable property hasColor. Binding might not update when the property changes. [stale-property-read]
For Gerrit Dashboard: QTBUG-138142 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
664581,5 | Fix qmllint warning on DropArea's hasColor property usage | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |