PDA

View Full Version : Is silder an Item type ?



sajis997
7th February 2015, 13:40
Hello forum,

If Slider is an Item type, it should be possible to define the MouseArea . I am doing it as follows, but it is not capturing any event.




Slider {
id: outerTessellationSlider
opacity: 1.0
minimumValue: 1.0
maximumValue: 35
stepSize: 1.0

onValueChanged: tessSceneItem.outer = value

MouseArea
{
onEntered: console.log("Slider Entered")
}
}


What is missing above ?


Thanks

wysota
7th February 2015, 14:31
You forgot to enable accepting hover events.

sajis997
7th February 2015, 15:41
Tried it with the following:




hovered: true



Getting a blank screen.

And
hoverEnabled: true is giving error as it is mentioning that the property is invalid.

wysota
7th February 2015, 17:57
And
hoverEnabled: true is giving error as it is mentioning that the property is invalid.

Works just fine here. Did you set the property on the right item?