Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 10.0.0
-
None
Description
For the following code, Creator complains that the "value: rep.val2" line is an unqualified access, but instead of adding "pragma ComponentBehavior: Bound" to the top of the file, it changes "rep" to "top".
import QtQuick import QtQuick.Controls import QtQuick.Layouts ApplicationWindow { width: grid.implicitWidth height: grid.implicitHeight visible: true GridLayout { id: grid columns: 6 Repeater { model: 36 id: rep property real val: 0 property real val2: (val > 1) ? 2 - val : val; Dial { Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter id: dial width: 200 height: 200 wrap: true value: rep.val2 Text { id: vT text: Math.round(parent.angle) anchors.centerIn: parent } Text { text: parent.startAngle anchors.bottom: vT.top anchors.horizontalCenter: vT.horizontalCenter } Text { text: parent.endAngle anchors.top: vT.bottom anchors.horizontalCenter: vT.horizontalCenter } } NumberAnimation on val { from: 0 to: 2 duration: 4000 loops: 2 } } } }
I'm using the 6.5.0 macOS preview.