During every resize your wave is being updated. It would be wise to update it only when the user stops resizing but then it might not be worth the effort. Maybe you should stick with generating the pixmap during paint event for now until you reach a point where it becomes a bottleneck.
Bookmarks