[ACCEPTED]-QSlider Value Changed Signal-qslider

Accepted answer
Score: 49

Good question, I checked the API and also 6 couldn't find a signal that would be triggered 5 only if value was modified by user. The 4 workaround you proposed may be the only 3 option, just keep in mind that you don't 2 have to disconnect / connect all signals, just 1 use QObject::blockSignals method:

slider->blockSignals(true);
slider->setValue(x);
slider->blockSignals(false);

Hope that helps.

More Related questions