mirror of
https://github.com/chengyangkj/Ros_Qt5_Gui_App.git
synced 2025-09-15 12:58:58 +08:00
配置优化
This commit is contained in:
parent
1eb414b2b0
commit
1d37f8b510
@ -15,6 +15,7 @@
|
||||
#include "./basewidget/customwidget.h"
|
||||
#include <QComboBox>
|
||||
#include <QSpinBox>
|
||||
#include <QDesktopServices>
|
||||
namespace Ui {
|
||||
class LoginWidget;
|
||||
}
|
||||
|
||||
@ -60,6 +60,9 @@ LoginWidget::LoginWidget(QWidget *parent) :
|
||||
connect(ui->pushButton_setting,&QPushButton::clicked,[=](){
|
||||
ui->stackedWidget->setCurrentIndex(1);
|
||||
});
|
||||
connect(ui->pushButton_hellp,&QPushButton::clicked,[=](){
|
||||
QDesktopServices::openUrl(QUrl(QString("https://github.com/chengyangkj/Ros_Qt5_Gui_App/blob/master/README.md")));
|
||||
});
|
||||
connect(ui->pushButton_return,&QPushButton::clicked,[=](){
|
||||
QMessageBox msg(this);//对话框设置父组件
|
||||
msg.setWindowTitle("返回主界面");//对话框标题
|
||||
@ -279,6 +282,7 @@ void LoginWidget::slot_ShowWindow()
|
||||
{
|
||||
this->show();
|
||||
ui->btnLogin->setEnabled(true);
|
||||
ui->btnLogin->setStyleSheet("border:0px;background-color:#F81243;color:WHITE;");
|
||||
}
|
||||
|
||||
void LoginWidget::SltAnimationFinished()
|
||||
|
||||
@ -32,7 +32,7 @@ padding:0;
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="page">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
@ -309,7 +309,7 @@ padding:0;
|
||||
color:GRAY;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>主节点IP:</string>
|
||||
<string>主节点地址:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -347,7 +347,7 @@ color:GRAY;</string>
|
||||
color:GRAY;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>本机IP: </string>
|
||||
<string>本机IP: </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user