File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void MainWindow::on_pushConnect_clicked()
7676void 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 ;
Original file line number Diff line number Diff line change 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" >
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" >
You can’t perform that action at this time.
0 commit comments