Qt 6.11 is out! See what's new in the release
blog
Fixed width line in QImage
-
Hi! I am trying to create line plots using
QImage. This plot is meant to be resizable in both width and height. The plotline I draw is usually 1 pixel wide, and each plotline consists of data points in tens of thousands and there are tens of plotlines in oneQImage. When I resize, recalculating and redrawing the entireQImagetakes a lot of time and so I am trying to just scale theQImageusingscaled()function according to my requirements, this is very fast. However, if the height ofQImageis small enough the line plots disappear, is there any way I can make sure that the plot lines have a fixed width no matter the size ofQImage?