Dバス・ピンポン
D-Busを使った簡単なメッセージ・システムのデモ。
Ping Pongは、D-Busの基本を示すコマンドラインの例です。 Qt D-Bus.メッセージが他のアプリケーションに送信され、メッセージの確認があります。
例の実行
からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、「例の構築と実行」を参照してください。
pong
アプリケーションを実行し、メッセージを引数としてping
アプリケーションを実行します。
$ ./pong & $ ./ping Hello Reply was: ping("Hello") got called
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.