演示 Qt D-Bus 类型系统的用法。
Complex Ping Pong
example demonstrates the use of
Qt D-Bus
类型系统采用
QDBusVariant
and
QDBusReply
。范例的组成由主应用程序
complexping
启动其它应用程序,
complexpong
。输入关键字,譬如
hello
and
ping
由 complexpong 处理,并将回复打印到标准输出。
要运行范例从 Qt Creator ,打开 Welcome 模式,然后选择范例从 Examples 。更多信息,拜访 构建和运行范例 .
要运行,执行
complexping
应用程序。
$ ./complexping Ask your question: When is the next Qt release? Reply was: Sorry, I don't know the answer Ask your question: What is the answer to life, the universe and everything? Reply was: 42