From 4e494534f6d48ab395c03c83e938ad19f8c61a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E8=80=B3=E5=88=AE=E5=AD=90?= <2433069615@qq.com> Date: Fri, 13 May 2022 23:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/mainwindow.cpp | 8 +++++++ src/ui/mainwindow.ui | 53 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/src/main/mainwindow.cpp b/src/main/mainwindow.cpp index 2d32fd7..8faded1 100644 --- a/src/main/mainwindow.cpp +++ b/src/main/mainwindow.cpp @@ -230,6 +230,14 @@ void MainWindow::connections(){ QObject::connect(ui->btn_ugv, &QPushButton::clicked, this, [=](){ ui->stackedWidget_main->setCurrentIndex(2); }); + + QObject::connect(ui->btn_system, &QPushButton::clicked, this, [=](){ + ui->stackedWidget_ros_control->setCurrentIndex(1); + }); + QObject::connect(ui->btn_keyboard, &QPushButton::clicked, this, [=](){ + ui->stackedWidget_ros_control->setCurrentIndex(0); + }); + /* * 绑定速度控制按钮 */ diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index 7cc172a..5d0ec33 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -54,7 +54,7 @@ - + 1000 @@ -66,6 +66,9 @@ + + 1 + @@ -552,7 +555,49 @@ QPushButton:pressed{border-image: url(://images/down_2.png);} - + + + + + + + 0 + 221 + + + + TextLabel + + + + + + + + 300 + 0 + + + + + 12312312 + 12312312 + + + + QListView{ +border-top: 5px solid qlineargradient(y0:0, y1:1,stop: 0 #ececef, stop: 1 white); +border-left: 5px solid qlineargradient(x0:0, x1:1,stop: 0 #ececef, stop: 1 white); + border-bottom: 5px solid qlineargradient(y0:0, y1:1,stop: 0 white, stop: 1 #ececef); +border-right: 5px solid qlineargradient(x0:0, x1:1,stop: 0 white, stop: 1 #ececef); +background-color: rgb(255,255,255); +} + + + + + + @@ -577,7 +622,7 @@ QPushButton:pressed{border-image: url(://images/down_2.png);} - + 0 @@ -590,7 +635,7 @@ QPushButton:pressed{border-image: url(://images/down_2.png);} - + 0