From 5f1c120a89abfd1c698aed63df42a2c706c40e79 Mon Sep 17 00:00:00 2001 From: Barry <870709864@qq.com> Date: Sun, 27 Jan 2019 15:57:37 +0800 Subject: [PATCH] =?UTF-8?q?update:=E8=A7=86=E9=A2=91=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/videoform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QtScrcpy/videoform.cpp b/QtScrcpy/videoform.cpp index b300a6e..72193c7 100644 --- a/QtScrcpy/videoform.cpp +++ b/QtScrcpy/videoform.cpp @@ -243,8 +243,9 @@ void VideoForm::updateShowSize(const QSize &newSize) //int titleBarHeight = style()->pixelMetric(QStyle::PM_TitleBarHeight); //showSize.setHeight(showSize.height() - titleBarHeight); - if (showSize != size()) { - resize(showSize); + if (showSize != size()) { + setFixedSize(showSize); + //resize(showSize); updateStyleSheet(vertical); } }