I'm using the next line in order to display the position of the slider on the label.
connect(slider, SIGNAL(valueChanged(int)), label, SLOT(setNum(int)));
It works fine. However, I don't really understand how is this value being transferred. How does the parameter of the valueChanged function pass to the setNum function ?