Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Does QPainter tries to paint anything outside the size of paint device?
-
Hi, I am working on an algorithm for a line plot. I am drawing the line plot on a
QImage
. Due to zooming and scrolling the points to be drawn can be way outside ofQImage
boundary (sometimes by a factor of 10s of thousands). So, my question is, willQPainter
waste any resource/computation time in trying to draw the points that lie outside ofQImage
? If yes, then while computing I will try to limit any point that lies outside ofQImage
, but if it doesn't waste any resource/computation time in drawing anything outside the boundary ofQImage
then I will not bother and save my computation time in limiting the point that lies outside theQImage
boundary.
-
so write a test program, meter the performance of canvas writes vs out-of-bounds writes, and report back.