新添加波列后, 设置深度后显示变密度(成像),切换绘图类型波形不显示BUG。

This commit is contained in:
DESKTOP-450PEFP\mainc 2026-02-09 16:12:19 +08:00
parent c6f9e47e74
commit 9f382743fb
2 changed files with 4 additions and 4 deletions

View File

@ -936,6 +936,8 @@ void FormDraw::setRowHeight(double dHight, QProgressBar *progressBar, int iSplit
QMyCustomPlot *form = (QMyCustomPlot*)childWidget; QMyCustomPlot *form = (QMyCustomPlot*)childWidget;
if(form) if(form)
{ {
form->m_iY1 = m_iY1;
form->m_iY2 = m_iY2;
int nw = form->geometry().width(); int nw = form->geometry().width();
form->setGeometry(0, 0, nw, (int)dHight);//7500-3184 form->setGeometry(0, 0, nw, (int)dHight);//7500-3184
//深度改变 //深度改变

View File

@ -202,8 +202,6 @@ void QMyCustomPlot::initWave(QString strSlfName, QString strWaveName)
// m_iY1 = 0.0 -_EDep; // m_iY1 = 0.0 -_EDep;
// m_iY2 = 0.0 -_SDep; // m_iY2 = 0.0 -_SDep;
//------------------------ //------------------------
widget->m_iX1 = vmin;
widget->m_iX2 = vmax;
widget->m_iY1 = m_iY1; widget->m_iY1 = m_iY1;
widget->m_iY2 = m_iY2; widget->m_iY2 = m_iY2;
// //
@ -272,8 +270,8 @@ void QMyCustomPlot::initWave2(QString strSlfName, QString strWaveName)
float vmax = 264;// (float)_nSamples; float vmax = 264;// (float)_nSamples;
float vmin = 0; float vmin = 0;
widget->m_iX1 = vmin; //widget->m_iX1 = vmin;
widget->m_iX2 = vmax; //widget->m_iX2 = vmax;
// //
widget->xAxis->setRange(vmin, vmax); widget->xAxis->setRange(vmin, vmax);
widget->yAxis->setRange(m_iY1, m_iY2); widget->yAxis->setRange(m_iY1, m_iY2);