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?
CJha last edited by CJha
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 of
QImageboundary (sometimes by a factor of 10s of thousands). So, my question is, will
QPainterwaste any resource/computation time in trying to draw the points that lie outside of
QImage? If yes, then while computing I will try to limit any point that lies outside of
QImage, but if it doesn't waste any resource/computation time in drawing anything outside the boundary of
QImagethen I will not bother and save my computation time in limiting the point that lies outside the
Kent-Dorfman last edited by
so write a test program, meter the performance of canvas writes vs out-of-bounds writes, and report back.