title: Synchronize two element values in PyQt5
body: <p>I have a slider and a text box that contains an integer (is there a dedicated integer box?) in PyQt5 shown side by side.</p>
  
  <p>I need these two values to be synchronized, and the way I am doing it right now is with a QtTimer and if statements detecting if one value has changed more recently than the other, and then updating the opposite element. I was told this was "hacky" and was wondering if there was a proper way to do this.</p>
  
  <p>You can see the text box values and sliders that I need to synchronize in the clear areas of the image below.</p>
  
  <p><a href="https://i.stack.imgur.com/Vnx3U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vnx3U.png" alt="Interface example"></a></p>