i want to draw a wave, but i don't want draw in the paintEvent(), so i want to know how to draw graph in myself defined function. thank you