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.