将ip输入和端口输入的框改成纯文本的,更新RM

This commit is contained in:
2022-01-08 20:16:22 +08:00
parent a23651cad3
commit ffe3ee2967
6 changed files with 47 additions and 33 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 6.0.1, 2022-01-07T00:57:47. -->
<!-- Written by QtCreator 6.0.1, 2022-01-08T19:34:54. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
@@ -247,7 +247,6 @@
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_6_2_2_MinGW_64_bit-Debug</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
+3 -3
View File
@@ -8,7 +8,7 @@
#include <QDebug>
#include <QTcpSocket> //socket
#include <QLabel>
#include <QPlainTextEdit>
@@ -48,8 +48,8 @@ public:
quint16 outputbusy=0;
quint16 barbusy=0;
//QThread* main_thread;
QTextEdit* ip_list;
QTextEdit* port_list;
QPlainTextEdit* ip_list;
QPlainTextEdit* port_list;
QTextEdit* output_list;
trytry* try_telnet;
+2 -2
View File
@@ -61,7 +61,7 @@ Widget::Widget(QWidget *parent)
//dispatch_thread->moveToThread(main_thread);
connect(dispatch_thread, &dispatch::dispatch_one, [=]()
{
qDebug()<<100*nt_bar/t_bar;
//qDebug()<<100*nt_bar/t_bar;
//ui->t_bar->setValue(100*nt_bar/t_bar);
ui->stard_scan->setText(QString("停止 %1%").arg(100*nt_bar/t_bar));
@@ -92,7 +92,7 @@ Widget::Widget(QWidget *parent)
connect(ui->IP_list,&QTextEdit::textChanged,this, &Widget::auto_edit);
//connect(ui->IP_list,&QTextEdit::textChanged,this, &Widget::auto_edit);
}
+1
View File
@@ -6,6 +6,7 @@
#include <QTextEdit>
#include "scan_run.h"
#include <QThread>
+20 -20
View File
@@ -25,16 +25,6 @@
<property name="windowTitle">
<string>Widget</string>
</property>
<widget class="QTextEdit" name="port_list">
<property name="geometry">
<rect>
<x>490</x>
<y>100</y>
<width>101</width>
<height>111</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
@@ -133,16 +123,6 @@
<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>
@@ -204,6 +184,26 @@ domain.com</string>
<number>100</number>
</property>
</widget>
<widget class="QPlainTextEdit" name="IP_list">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>471</width>
<height>111</height>
</rect>
</property>
</widget>
<widget class="QPlainTextEdit" name="port_list">
<property name="geometry">
<rect>
<x>490</x>
<y>100</y>
<width>104</width>
<height>111</height>
</rect>
</property>
</widget>
</widget>
<resources/>
<connections/>