Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5
Description
After bug https://bugreports.qt.io/browse/QTBUG-104209 was fixed the qmllint stop warns about usage Tumbler in root of class defined in file, but still reports warning for proper usage of Tumbler in child elements.
For this code:
import QtQuick import QtQuick.Controls Text { id: delegate readonly property real angelVal: Tumbler.displacement / (Tumbler.tumbler.visibleItemCount / 2) Text { font.pixelSize: Math.abs(delegate.Tumbler.displacement) < 0.9 ? 3.5 : 3 } }
qmllint reports:
Warning: Test11.qml:9:55: Tumbler: attached properties of Tumbler must be accessed through a delegate item font.pixelSize: Math.abs(delegate.Tumbler.displacement) < 0.9 ? 3.5 : 3 ^^^^^^^^^^^^