Quote Originally Posted by franco.amato View Post
2) I resize the window WITHOUT PLAY THE FILE
in this case I have to update the wave so I can not move the updatewave inside the setCurrentTimePosition
Call updateWave() from the resizeEvent() as well. It's still worth it to write another method to have the paint event not have to execute the if statement every time your widget is redrawn.