重新布局

This commit is contained in:
2022-01-01 20:53:22 +08:00
parent a33f997199
commit c0bd300003
3 changed files with 79 additions and 72 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
QT += core gui
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+14
View File
@@ -1,11 +1,25 @@
#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
#include <QTcpSocket> //通信套接字
void tray_scan()
{
qDebug("1");
}
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
qDebug("hello world");
connect(ui->stard_scan,&QPushButton::pressed,this,tray_scan);//扫描按钮被按下
}
Widget::~Widget()
+64 -71
View File
@@ -6,86 +6,40 @@
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<height>300</height>
<width>600</width>
<height>500</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>300</height>
<width>600</width>
<height>500</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>480</width>
<height>300</height>
<width>600</width>
<height>500</height>
</size>
</property>
<property name="windowTitle">
<string>Widget</string>
</property>
<widget class="QLineEdit" name="ip_stard">
<widget class="QTextEdit" name="port_list">
<property name="geometry">
<rect>
<x>80</x>
<y>50</y>
<width>113</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="ip_end">
<property name="geometry">
<rect>
<x>80</x>
<y>90</y>
<width>113</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>41</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>开始IP</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>41</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>结束IP</string>
</property>
</widget>
<widget class="QTextEdit" name="port">
<property name="geometry">
<rect>
<x>80</x>
<y>130</y>
<width>111</width>
<height>71</height>
<x>500</x>
<y>100</y>
<width>91</width>
<height>111</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>12</x>
<y>140</y>
<x>510</x>
<y>30</y>
<width>61</width>
<height>61</height>
</rect>
@@ -99,8 +53,8 @@
<widget class="QPushButton" name="stard_scan">
<property name="geometry">
<rect>
<x>20</x>
<y>250</y>
<x>420</x>
<y>220</y>
<width>171</width>
<height>41</height>
</rect>
@@ -112,8 +66,8 @@
<widget class="QSpinBox" name="spinBox">
<property name="geometry">
<rect>
<x>80</x>
<y>220</y>
<x>300</x>
<y>230</y>
<width>111</width>
<height>22</height>
</rect>
@@ -131,8 +85,8 @@
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>20</x>
<y>220</y>
<x>240</x>
<y>230</y>
<width>53</width>
<height>16</height>
</rect>
@@ -144,18 +98,18 @@
<widget class="QListView" name="listView">
<property name="geometry">
<rect>
<x>210</x>
<y>100</y>
<width>256</width>
<height>192</height>
<x>10</x>
<y>270</y>
<width>581</width>
<height>201</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>210</x>
<y>70</y>
<x>10</x>
<y>230</y>
<width>53</width>
<height>16</height>
</rect>
@@ -164,6 +118,45 @@
<string>扫描结果</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>70</x>
<y>230</y>
<width>91</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>保存扫描结果</string>
</property>
</widget>
<widget class="QTextEdit" name="IP_list">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>471</width>
<height>111</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>141</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string>IP范围
127.0.0.1
0.0.0.0-255.255.255.255
domain.com</string>
</property>
</widget>
</widget>
<resources/>
<connections/>