From 6c457d48a8267afdcacbbf19c9d8a2661051cd2e Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 5 Jul 2022 09:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A3=81=E5=89=AA=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner/cutpapertool.cpp | 6 +++--- app/scanner/cutpapertool.ui | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/scanner/cutpapertool.cpp b/app/scanner/cutpapertool.cpp index 6a990b08..d415deaa 100644 --- a/app/scanner/cutpapertool.cpp +++ b/app/scanner/cutpapertool.cpp @@ -17,8 +17,8 @@ CutPaperTool::CutPaperTool(QWidget *parent) : //setPaperType(200,"A4",400); ui->widget->setSizeType(MILLIM); setSizeLabel(); - ui->pbtn_init->setFixedWidth(160); - this->setFixedWidth(ui->widget->width()+20); + //ui->pbtn_init->setFixedWidth(160); + this->setFixedWidth(ui->widget->width()+40); } CutPaperTool::~CutPaperTool() @@ -41,7 +41,7 @@ void CutPaperTool::setPaperType(const int d, const QString &t, const int& w) ui->widget->setPaperSize(paperType,w); //ui->widget->refreshView(); setSizeLabel(); - this->setFixedWidth(ui->widget->width()+20); + this->setFixedWidth(ui->widget->width()+40); setSizeInit(); } diff --git a/app/scanner/cutpapertool.ui b/app/scanner/cutpapertool.ui index af8c0a65..0e5178d6 100644 --- a/app/scanner/cutpapertool.ui +++ b/app/scanner/cutpapertool.ui @@ -2,12 +2,15 @@ CutPaperTool + + true + 0 0 439 - 700 + 676 @@ -19,7 +22,7 @@ 自定义扫描区域 - + @@ -153,7 +156,7 @@ 0 0 421 - 454 + 430