I'm using QCustomplot to draw graphs that supports a large number of points but I'm facing a problem when it comes to resolution after resizing graph to a smaller size (it begins to look like it has a low resolution)

I'm using QCPScatterStyle bbut due to the large amount of points it should look like a line and that's what it does look like when the graph is large enough but when it's not the line looks disconnected