Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
onPaint at program start
The Smiling Mickey last edited by
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?