D-Bus 復雜乒乓範例

演示 Qt D-Bus 類型係統的用法。

復雜乒乓範例 演示使用 Qt D-Bus 類型係統采用 QDBusVariant and QDBusReply 。範例的組成由主應用程序 complexping 啓動其它應用程序, complexpong 。輸入關鍵字,譬如 hello and ping 由 complexpong 處理,並將迴復打印到標準輸齣。

運行範例

要運行範例從 Qt Creator ,打開 歡迎 模式,然後選擇範例從 範例 。更多信息,拜訪 構建和運行範例 .

要運行,執行 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
					

文件: