title: how to paint an ellipse by pressing the button
body: <p>I want to paint an ellipse using the click button. But I can't connect the click button to paintEvent. e.g., If the button is pressed the ellipse should be green otherwise it should be red.</p>