We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363cf28 commit 3bb3aefCopy full SHA for 3bb3aef
test-client/myTcpClient/mainwindow.cpp
@@ -76,7 +76,7 @@ void MainWindow::on_pushConnect_clicked()
76
void MainWindow::on_pushSent_clicked()
77
{
78
qDebug() << "点击发送:" ;
79
- QString data = this->ui->txtData->text();
+ QString data = this->ui->txtData->toPlainText();//->text();
80
if (data.isEmpty())
81
82
return ;
test-client/myTcpClient/mainwindow.ui
@@ -6,8 +6,8 @@
6
<rect>
7
<x>0</x>
8
<y>0</y>
9
- <width>431</width>
10
- <height>466</height>
+ <width>504</width>
+ <height>505</height>
11
</rect>
12
</property>
13
<property name="windowTitle">
@@ -28,7 +28,7 @@
28
</widget>
29
</item>
30
<item>
31
- <widget class="QLineEdit" name="txtData"/>
+ <widget class="QTextEdit" name="txtData"/>
32
33
34
<widget class="QPushButton" name="pushSent">
0 commit comments