Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5
-
7424756626 (qt/qtdeclarative/dev) 7424756626 (qt/tqtc-qtdeclarative/dev)
Description
For inline "delegate" in "Tumbler" qmllint (recent dev) reports nothing:
import QtQuick.Controls 2.15 import QtQuick 2.15 Tumbler { delegate: Text { readonly property real angelVal: Tumbler.displacement / (Tumbler.tumbler.visibleItemCount / 2) } }
but if I move property definition to TumblerDelegate.qml:
import QtQuick 2.15
Text {
id: delegate
readonly property real angelVal: Tumbler.displacement / (Tumbler.tumbler.visibleItemCount / 2)
}
then qmllint reports warning:
Tumbler: attached properties of Tumbler must be accessed through a delegate item readonly property real angelVal: Tumbler.displacement / (Tumbler.tumbler.visibleItemCount / 2) ^^^^^^^
but attached properties works in both cases without any problem,
so I suppose this is qmllint related issue.
Attachments
For Gerrit Dashboard: QTBUG-104209 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
416819,2 | quicklintplugin: Ignore root components for certain attached properties | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
417740,5 | qqmljstypepropagator: Use object that is being attached to as context | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |