Hi guys,

I have successfully connected a slider and a spinBox so that if i change the value in one the other will update, however i dont want to connect the spinBox to the slider, i actually link the slider to a global variable so that when the slider changes so will the value in the variable.

My code to connect a spinBox and a Slider is below:

QObject::connect(spinBox_saturation, SIGNAL(valueChanged(int)), horzSlider_saturation, SLOT(setValue(int)));

And the variable i want to connect to this slider is

int output;