fix send from client to server
This commit is contained in:
@@ -31,4 +31,23 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
anchors.centerIn: parent
|
||||
width: 300
|
||||
height: 150
|
||||
|
||||
TextArea {
|
||||
id: messageArea
|
||||
placeholderText: "Message..."
|
||||
wrapMode: TextEdit.WordWrap
|
||||
}
|
||||
Button {
|
||||
text: "Submit"
|
||||
onClicked: {
|
||||
tcpClient.send(messageArea.text)
|
||||
messageArea.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user