D-Bus 핑퐁

D-Bus를 사용하여 간단한 메시지 시스템을 시연합니다.

핑퐁은 명령줄 예제입니다. Qt D-Bus. 메시지가 다른 애플리케이션으로 전송되고 메시지에 대한 확인이 이루어집니다.

예제 실행하기

에서 예제를 실행하려면 Qt Creator에서 Welcome 모드를 열고 Examples 에서 예제를 선택합니다. 자세한 내용은 예제 빌드 및 실행하기를 참조하세요.

pong 애플리케이션을 실행하고 메시지를 인수로 사용하여 ping 애플리케이션을 실행합니다.

$ ./pong &
$ ./ping Hello
Reply was: ping("Hello") got called

예제 프로젝트 @ code.qt.io

© 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.