Skip to content

Commit 3bb3aef

Browse files
committed
发送改为textedit,好发送http头,测试http
1 parent 363cf28 commit 3bb3aef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test-client/myTcpClient/mainwindow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void MainWindow::on_pushConnect_clicked()
7676
void MainWindow::on_pushSent_clicked()
7777
{
7878
qDebug() << "点击发送:" ;
79-
QString data = this->ui->txtData->text();
79+
QString data = this->ui->txtData->toPlainText();//->text();
8080
if (data.isEmpty())
8181
{
8282
return ;

test-client/myTcpClient/mainwindow.ui

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>431</width>
10-
<height>466</height>
9+
<width>504</width>
10+
<height>505</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -28,7 +28,7 @@
2828
</widget>
2929
</item>
3030
<item>
31-
<widget class="QLineEdit" name="txtData"/>
31+
<widget class="QTextEdit" name="txtData"/>
3232
</item>
3333
<item>
3434
<widget class="QPushButton" name="pushSent">

0 commit comments

Comments
 (0)