This commit is contained in:
DESKTOP-450PEFP\mainc 2026-04-27 16:24:32 +08:00
parent 7b3426acbb
commit 1ce7355e58

View File

@ -11845,7 +11845,7 @@ void QMyCustomPlot::vertScrollBarChanged(QString strUuid, int value, int low, in
xAxis->setRange(-value, xAxis->range().size(), Qt::AlignRight); xAxis->setRange(-value, xAxis->range().size(), Qt::AlignRight);
const QCPRange& rg = xAxis->range(); const QCPRange& rg = xAxis->range();
this->updateDepthY(rg.lower, rg.upper); this->updateDepthY(rg.lower, rg.upper);
replot(); replot(QCustomPlot::rpQueuedRefresh);
} }
} }
else{ else{
@ -11854,7 +11854,7 @@ void QMyCustomPlot::vertScrollBarChanged(QString strUuid, int value, int low, in
this->yAxis->setRange(-value, this->yAxis->range().size(), Qt::AlignRight); this->yAxis->setRange(-value, this->yAxis->range().size(), Qt::AlignRight);
const QCPRange& rg = yAxis->range(); const QCPRange& rg = yAxis->range();
this->updateDepthY(rg.lower, rg.upper); this->updateDepthY(rg.lower, rg.upper);
replot(); replot(QCustomPlot::rpQueuedRefresh);
} }
} }
} }