Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I have no idea how can i do the unit test on the paintEvent function that is override.
Kindly suggest any ideas or opinions.
Hi,
What does happen in that paint event that you want to test ?
In the paintEvent, just draws simple drawings like a circle. So i want to test if the drawing is actually drawn i.e. paintEvent function is executed or not.
Since you know what is rendered, you can dump the result and check that the resulting image is not blank.
Thanks for the reply.
I was able to use this approach to solve the problem by storing the image and later compare the image stored.