From 3081d9196bf01f8646a785d587248c3cc92d0d6a Mon Sep 17 00:00:00 2001 From: rankun Date: Mon, 29 Oct 2018 16:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dialog.cpp | 2 +- src/dialog.ui | 16 ++++++++-------- src/main.cpp | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/dialog.cpp b/src/dialog.cpp index b11313f..fcb583e 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -47,7 +47,7 @@ Dialog::Dialog(QWidget *parent) : w2 = new YUVGLWidget(this); w2->resize(ui->imgLabel->size()); - w2->move(230, 20); + w2->move(ui->imgLabel->pos()); Decoder::init(); diff --git a/src/dialog.ui b/src/dialog.ui index f0b2ec8..ec17742 100644 --- a/src/dialog.ui +++ b/src/dialog.ui @@ -6,8 +6,8 @@ 0 0 - 1309 - 707 + 1100 + 712 @@ -29,8 +29,8 @@ - 30 - 60 + 160 + 20 111 28 @@ -42,8 +42,8 @@ - 30 - 100 + 290 + 20 111 28 @@ -55,8 +55,8 @@ - 230 - 20 + 20 + 60 1051 621 diff --git a/src/main.cpp b/src/main.cpp index 33a3bb8..815dc61 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,7 @@ int main(int argc, char *argv[]) qputenv("QTSCRCPY_SERVER_PATH", "G:\\mygitcode\\QtScrcpy\\src\\scrcpy-server.jar"); Dialog w; + w.move(50, 930); w.show(); return a.exec();