First of all I'd say I'm a noob to GUI programming. I use Qt 5.4.
I came up with this code while watching voidRealms videos.
Obviously this connects slider movement with progressbar fill. This actually works like
How can I make into a different relation? Like
<- (slidermovement)/2 or something like that.