From 11f8f0ea68b71e7d6d141a54af3477d779c3c733 Mon Sep 17 00:00:00 2001 From: hero132457 Date: Thu, 20 Jan 2022 14:57:50 +0800 Subject: [PATCH] =?UTF-8?q?ui=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SmartGreenhouse.pro.user | 319 +++++++++++++++++++++++++++++++++++++++ mainmenu.cpp | 10 +- mainmenu.ui | 206 +++++++++++++++---------- 3 files changed, 453 insertions(+), 82 deletions(-) create mode 100644 SmartGreenhouse.pro.user diff --git a/SmartGreenhouse.pro.user b/SmartGreenhouse.pro.user new file mode 100644 index 0000000..b052cfe --- /dev/null +++ b/SmartGreenhouse.pro.user @@ -0,0 +1,319 @@ + + + + + + EnvironmentId + {4989d898-d142-40e1-bda1-b0a409c68ecc} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + -fno-delayed-template-parsing + + true + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.14.2 MinGW 64-bit + Desktop Qt 5.14.2 MinGW 64-bit + qt.qt5.5142.win64_mingw73_kit + 0 + 0 + 0 + + C:/Users/sn04058/Desktop/qt/build-SmartGreenhouse-Desktop_Qt_5_14_2_MinGW_64_bit-Debug + + + true + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + + C:/Users/sn04058/Desktop/qt/build-SmartGreenhouse-Desktop_Qt_5_14_2_MinGW_64_bit-Release + + + true + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + + + C:/Users/sn04058/Desktop/qt/build-SmartGreenhouse-Desktop_Qt_5_14_2_MinGW_64_bit-Profile + + + true + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + + 3 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + + ProjectExplorer.CustomExecutableRunConfiguration + + + false + + false + true + false + false + true + + + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + + diff --git a/mainmenu.cpp b/mainmenu.cpp index fcb7b1c..f5240f6 100644 --- a/mainmenu.cpp +++ b/mainmenu.cpp @@ -13,11 +13,11 @@ MainMenu::MainMenu(QWidget *parent) this->setWindowIcon(QIcon(":/ico.png")); this->setWindowTitle("快乐不起来啊"); - this->setAutoFillBackground(true); - QPalette palette; - QPixmap pixmap(":/Resources/Penguins.jpg"); - palette.setBrush(QPalette::Window, QBrush(pixmap)); - this->setPalette(palette); + //this->setAutoFillBackground(true); + //QPalette palette; + //QPixmap pixmap(":/Resources/Penguins.jpg"); + //palette.setBrush(QPalette::Window, QBrush(pixmap)); + //this->setPalette(palette); } MainMenu::~MainMenu() diff --git a/mainmenu.ui b/mainmenu.ui index cd44ddb..a68ff69 100644 --- a/mainmenu.ui +++ b/mainmenu.ui @@ -14,82 +14,134 @@ MainMenu - - - - 255 - 217 - 183 - 109 - - - - - - - - - - - 账户: - - - - - - - 密码: - - - - - - - IP: - - - - - - - - - - - - - - - - - 172.16.3.135 - - - - - - - - - - - - - 登录 - - - - - - - 显示密码 - - - - - - - + + Qt::WheelFocus + + + + + + Qt::Vertical + + + + 20 + 204 + + + + + + + + Qt::Horizontal + + + + 254 + 20 + + + + + + + + + + + + + + 账户: + + + + + + + 密码: + + + + + + + IP: + + + + + + + + + + + + + + + + + 172.16.3.135 + + + + + + + + + + + + + 登录 + + + + + + + Qt::RightToLeft + + + 显示密码 + + + + + + + + + + + Qt::Horizontal + + + + 254 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 204 + + + + + @@ -97,7 +149,7 @@ 0 0 800 - 23 + 22