From 37b792535b010b78c43688465aa965b8215ad432 Mon Sep 17 00:00:00 2001 From: rankun Date: Mon, 9 Mar 2020 12:37:54 +0800 Subject: [PATCH] feat: videoForm delay show --- QtScrcpy/device/device.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/QtScrcpy/device/device.cpp b/QtScrcpy/device/device.cpp index e6ccb72..22fa077 100644 --- a/QtScrcpy/device/device.cpp +++ b/QtScrcpy/device/device.cpp @@ -37,7 +37,6 @@ Device::Device(DeviceParams params, QObject *parent) m_controller = new Controller(params.gameScript, this); m_videoForm = new VideoForm(Config::getInstance().getSkin()); m_videoForm->setDevice(this); - m_videoForm->show(); } m_stream = new Stream(this); @@ -222,8 +221,13 @@ void Device::initSignals() QRect rc = Config::getInstance().getRect(getSerial()); if (rc.isValid()) { - m_videoForm->setGeometry(rc); + m_videoForm->move(rc.topLeft()); + m_videoForm->resize(rc.size()); + // TODO: setGeometry magneticwidget bug + //m_videoForm->setGeometry(rc); } + // videoForm delay show + m_videoForm->show(); } // init recorder