From 310ae7f50745ce71883cbbdf530769b40fd912af Mon Sep 17 00:00:00 2001 From: jiayulong Date: Mon, 11 May 2026 09:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E6=96=B0=E5=BB=BA=E6=9B=B2?= =?UTF-8?q?=E7=BA=BF=E7=AD=89=EF=BC=8C=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E9=80=BB=E8=BE=91=EF=BC=8C=E9=87=8D=E6=96=B0=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=88=B0=E6=9C=80=E9=A1=B6=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/mainwindowcurve.cpp | 7 ++++--- logPlus/qmycustomplot.cpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/logPlus/mainwindowcurve.cpp b/logPlus/mainwindowcurve.cpp index 5a0003f..c3e7ab5 100644 --- a/logPlus/mainwindowcurve.cpp +++ b/logPlus/mainwindowcurve.cpp @@ -5332,8 +5332,9 @@ void MainWindowCurve::s_changeScrollBar(QString strUuid) return; } - int iCurValue = ui->verticalScrollBar->value(); - vertScrollBarChanged(iCurValue); + ui->verticalScrollBar->setValue(-m_iY2);//-m_iY2 - //ui->verticalScrollBar->setValue(iCurValue+1);//-m_iY2 +// int iCurValue = ui->verticalScrollBar->value(); +// vertScrollBarChanged(iCurValue); +// //ui->verticalScrollBar->setValue(iCurValue+1);//-m_iY2 } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index b7b1463..cff22a6 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -12489,7 +12489,8 @@ void QMyCustomPlot::vertScrollBarChanged_setGeometry(QString strUuid, double val double dDelta = value; //- upper double dPercent = dDelta / (low-upper); - setGeometry(0, -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); + move(geoRect.x(), -(dPercent*geoRect.height())); + //setGeometry(geoRect.x(), -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); return; }