• 1931阅读
  • 1回复

qml-sockets [复制链接]

上一主题 下一主题
离线hp_201111
 

只看楼主 倒序阅读 楼主  发表于: 2019-09-29
— 本帖被 20091001753 从 Qt QML开发 移动到本区(2019-09-30) —
https://github.com/jemc/qml-sockets

  1. import Sockets 1.0
  2. TCPSocket {
  3.     host: "www.the-world.com"
  4.     port: 1025
  5.     Component.onCompleted: connect()
  6.     onConnected: write("Hello, World!")
  7.     onRead: console.log("The World says:", message)
  8.     onDisconnected: console.log("Goodbye, Cruel World...")
  9. }

4条评分好评度+1贡献值+1金钱+1威望+1
20091001753 好评度 +1 - 2019-09-30
20091001753 贡献值 +1 - 2019-09-30
20091001753 威望 +1 - 2019-09-30
20091001753 金钱 +1 - 2019-09-30
离线lsyzsl

只看该作者 1楼 发表于: 2019-10-05
怎么使用啊大佬?
快速回复
限100 字节
 
上一个 下一个