Nominate our 2022 Qt Champions!

onPaint at program start

  • Hello,

    I've created an application which draws a line when a certain Key is pressed. This works fine but the annoying problem is the onPaint which is called at the program start. This means there is always a line in the canvas.

    How can I make sure that the onPaint is only called when a Key is pressed?

Log in to reply