D-Bus 핑퐁
D-Bus를 사용한 간단한 메시지 시스템을 보여줍니다.
핑퐁은 다음의 기본 사항을 보여주는 명령줄 예제입니다 Qt D-Bus. 메시지가 다른 애플리케이션으로 전송되고, 이에 대한 확인 응답이 돌아옵니다.
예제 실행
다음 경로에서 예제를 실행할 수 있습니다.
- Qt Creator
Welcome 모드를 열고 Examples 에서 예제를 선택하십시오. 자세한 내용은 Qt Creator: 튜토리얼: 빌드 및 실행을 참조하십시오.
- Qt Extension for Visual Studio Code
Command Palette 에서 Qt: Open Qt examples 명령을 실행하고 목록에서 예제를 선택하십시오. 자세한 내용은 Qt Extension for Visual Studio Code: 튜토리얼: 빌드 및 실행을 참조하십시오.
pong 애플리케이션을 실행하고, ping 애플리케이션을 메시지가 인수로 전달되도록 실행하십시오.
$ ./pong &
$ ./ping Hello
Reply was: ping("Hello") got called© 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.