添加3个升降桌

This commit is contained in:
tangchao0503
2025-03-06 19:16:21 +08:00
parent 5af6a039c2
commit a7fd9e4fa9
4 changed files with 80 additions and 21 deletions

View File

@ -70,7 +70,7 @@
</rect>
</property>
<property name="text">
<string>版本1.8.5</string>
<string>版本1.8.6</string>
</property>
</widget>
<widget class="QLabel" name="label_4">

View File

@ -12,6 +12,10 @@ adjustTable::adjustTable(QWidget *parent)
connect(ui.objective_table2_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Up_btn()));
connect(ui.objective_table2_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Down_btn()));
connect(ui.objective_table2_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable2Stop_btn()));
connect(ui.objective_table252_up_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Up_btn()));
connect(ui.objective_table252_down_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Down_btn()));
connect(ui.objective_table252_stop_btn, SIGNAL(clicked()), this, SLOT(onObjectivTable252Stop_btn()));
}
adjustTable::~adjustTable()
@ -63,3 +67,21 @@ void adjustTable::onObjectivTable2Stop_btn()
QString xx = "http://192.168.1.254/stopnow";
getRequest(xx);
}
void adjustTable::onObjectivTable252Up_btn()
{
QString xx = "http://192.168.1.252/set_up";
getRequest(xx);
}
void adjustTable::onObjectivTable252Down_btn()
{
QString xx = "http://192.168.1.252/set_down";
getRequest(xx);
}
void adjustTable::onObjectivTable252Stop_btn()
{
QString xx = "http://192.168.1.252/stopnow";
getRequest(xx);
}

View File

@ -24,6 +24,10 @@ public Q_SLOTS:
void onObjectivTable2Down_btn();
void onObjectivTable2Stop_btn();
void onObjectivTable252Up_btn();
void onObjectivTable252Down_btn();
void onObjectivTable252Stop_btn();
private:
Ui::adjustTableClass ui;

View File

@ -6,33 +6,66 @@
<rect>
<x>0</x>
<y>0</y>
<width>348</width>
<height>194</height>
<width>687</width>
<height>389</height>
</rect>
</property>
<property name="windowTitle">
<string>adjustTable</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>252号升降台</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="0" column="0">
<widget class="QPushButton" name="objective_table252_up_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>上升</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="objective_table252_down_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>下降</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="objective_table252_stop_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>停止</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>1号升降台</string>
<string>253号升降台</string>
</property>
<layout class="QGridLayout" name="gridLayout_11">
<item row="0" column="0">
@ -77,10 +110,10 @@
</layout>
</widget>
</item>
<item row="0" column="1">
<item row="0" column="2">
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>2号升降台</string>
<string>254号升降台</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0">