From e51bac0b0974e8dbedcddec10480173c03b78c94 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Tue, 12 May 2026 09:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=87=BA=E5=9B=BE=E7=9A=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/qmycustomplot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 656e856..70a715d 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -12542,8 +12542,8 @@ void QMyCustomPlot::vertScrollBarChanged_setGeometry(QString strUuid, double val double dDelta = value; //- upper double dPercent = dDelta / (low-upper); - //move(geoRect.x(), -(dPercent*geoRect.height())); - setGeometry(geoRect.x(), -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); + //move(0, -(dPercent*geoRect.height())); + setGeometry(0, -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); return; } @@ -12558,7 +12558,7 @@ void QMyCustomPlot::vertScrollBarChanged(QString strUuid, double value, double l return; } QRect geoRect = geometry(); - setGeometry(geoRect.x(), geoRect.y(), geoRect.width(), geoRect.height()); + setGeometry(0, 0, geoRect.width(), geoRect.height()); // FormInfo* pInfo = m_formTrack->getFormInfoByParameters(m_strUuid, m_strWellName, m_strTrackName, m_strLineName);