QTimer - making timers in PyQt4
Launching the constant timer will result in increasing after 1 second (1000 milliseconds) QProgressBar value. For the singleShot timer the value increase will happen only once. Constant timers use signal-slot system emitting timeout() signal. SingleShot timers are made using singleShot(time, receiver) method, where receiver is a method of our class, that will be run after specified amount of time.
You can download the example.