이 페이지에서

D-Bus 핑퐁

D-Bus를 사용한 간단한 메시지 시스템을 보여줍니다.

핑퐁은 다음의 기본 사항을 보여주는 명령줄 예제입니다 Qt D-Bus. 메시지가 다른 애플리케이션으로 전송되고, 이에 대한 확인 응답이 돌아옵니다.

예제 실행

다음 경로에서 예제를 실행할 수 있습니다.

pong 애플리케이션을 실행하고, ping 애플리케이션을 메시지가 인수로 전달되도록 실행하십시오.

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

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

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