diff --git a/lib/jkqtplotter/jkqtplotter.cpp b/lib/jkqtplotter/jkqtplotter.cpp index 312aff58ca..cc4e8aba24 100644 --- a/lib/jkqtplotter/jkqtplotter.cpp +++ b/lib/jkqtplotter/jkqtplotter.cpp @@ -1236,8 +1236,9 @@ void JKQTPlotter::resizeEvent(QResizeEvent *event) { void JKQTPlotter::delayedResizeEvent() { - int plotImageWidth=width(); - int plotImageHeight=height(); + qreal dpr = devicePixelRatioF(); + int plotImageWidth=width() * dpr; + int plotImageHeight=height() * dpr; plotImageHeight=plotImageHeight-getPlotYOffset(); //qDebug()<<"resize: "<