Source Code (Gui Example 8)
The idea in this code is to set up a relationship between a QSpinBox, QProgressBar, QSlider, and a QDial. The progress bar is read only and can only react to value changes. Modifying the value of the other three widgets will cause all four to be updated automatically.