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