Solved RangeSlider onFirstChange non-existent property Error
-
i using rangeslider for my project in qml. My range slider codes is
RangeSlider { id: rangeSLider first.value: 0.0 second.value: 1.0 anchors.horizontalCenter: parent.horizontalCenter width: 275 onFirstChanged: console.log("Change") }
When i run this codes i have an error. Error is
Cannot assign to non-existent property "onFirstChanged"
I want to change a text in parent qml file. So i think if use onFirstChange and onSecondChange functions, i can do it. But it did not work.
How can i do that ?
-
Hi @Argprstest
From Qt documentation of RangeSlider, i am not seeing any
onFirstChanged
http://doc.qt.io/qt-5/qml-qtquick-controls2-rangeslider.html
from where do you get it?
-
When i write "on" and press ctrl+space qtcreator suggest "onFirstChange".
-
i solved my problem by add "Connections" in my range slider. More details
http://stackoverflow.com/questions/41821909/rangeslider-onfirstchange-non-existent-property