From 2645d1b3bd078b0954463e406cc33a7e9f7f0e22 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Fri, 8 May 2026 11:47:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E9=AB=98=E6=8B=89=E4=BC=B8=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E5=90=8E=EF=BC=8C=E4=BC=98=E5=8C=96=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=87=BA=E5=9B=BE=E9=AB=98=E5=BA=A6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/mainwindowcurve.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/logPlus/mainwindowcurve.cpp b/logPlus/mainwindowcurve.cpp index bf20237..e332892 100644 --- a/logPlus/mainwindowcurve.cpp +++ b/logPlus/mainwindowcurve.cpp @@ -2803,6 +2803,16 @@ void MainWindowCurve::_slotExport(QPrinter &printer, int IsBmp, QString pngName, // changeDepthForPrint(); // } + //--///////////////////////////////// + //重置行高 + int iTableSize_Head_Tmp = 0; + getTableSize_Head(iTableSize_Head_Tmp); + if(iTableSize_Head_Tmp > (100+m_nObjLayerH)) + { + //打印出图,改变深度 + changeDepthForPrint(); + } + //--///////////////////////////////// printer.setPageMargins(0.0,0.0,0.0,0.0,QPrinter::DevicePixel); printer.setFullPage(true); @@ -2832,7 +2842,6 @@ void MainWindowCurve::_slotExport(QPrinter &printer, int IsBmp, QString pngName, //高度 for(int i=0; itableWidget_2->rowCount(); i++) { - iHight += ui->tableWidget_2->rowHeight(i); } iHight += 9 + (ui->tableWidget_2->rowCount()+1);//上margin + 边框n+1 @@ -4706,8 +4715,8 @@ void MainWindowCurve::changeDepthForPrint() // //获取井well前2行的高度 int iTableSize_Head = 100 + m_nObjLayerH; - //此处还没有生成well,所以不能这样获取 - //getTableSize_Head(iTableSize_Head); + // + getTableSize_Head(iTableSize_Head); // ui->tableWidget_2->setRowHeight(1, (int)iHeightOfScreen+iTableSize_Head+(3+1)+10); //update();