@TUStudi said:
I actually have 6 QLabels, so I now have 6 timer and so on
Derive a class from QLabel and add that functionality to it. Don't write the same code 6 times!
My QLabels have the sizePolicy horizontal: preferred and vertical: fixed and a vertical length of 20.
When a text is displayed, the QLabel expands so that the elements above the QLabel are also moved upwards and after the text disappears, they go back to their initial place.
Fixed size policy means that widget uses its sizeHint() as the size. If you change the text the size hint also changes, so label grows/shrinks.