Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Trusted Contributor
kunal_one
Posts: 121
Registered: ‎12-23-2012
My Carrier: wifi
Accepted Solution

Problem while using slider

Hi,

 

I am trying to use Slider cascade qml component.

 

I realized , when user drag the slider if emit the onValueChanged signal.

It also emit onValueChanged signal if i set value manually.

 

Is there a way to not emit onValueChanged signal when changing value manually ?

 

Thanks and regards

Please use plain text.
Developer
Zmey
Posts: 919
Registered: ‎12-18-2012

Re: Problem while using slider

Hi! Try

 

slider->blockSignals(true);

...modify the value...

slider->blockSignals(false);

 

or disconnect then reconnect the signal.

 

Please use plain text.
Trusted Contributor
kunal_one
Posts: 121
Registered: ‎12-23-2012
My Carrier: wifi

Re: Problem while using slider


Hi,

 

Thanks for quick response.

 

Same can be done with QML as well ?

 

Please use plain text.
Trusted Contributor
kunal_one
Posts: 121
Registered: ‎12-23-2012
My Carrier: wifi

Re: Problem while using slider

I did someting like following

 

sliderProgressBar.valueChanged.disconnect(sliderProgressBar.onValueChanged);

 

....

 

sliderProgressBar.valueChanged.connect(sliderProgressBar.onValueChanged);

 

seems to works fine.

 

Thaks for your help

Please use plain text.