D-버스 복합 탁구장

Qt D-Bus 유형 시스템의 사용법을 보여줍니다.

복잡한 핑퐁 예제는 다음과 같이 Qt D-BusQDBusVariantQDBusReply 를 사용한 타입시스템의 사용을 보여줍니다. 이 예제는 다른 애플리케이션인 complexpong 을 시작하는 메인 애플리케이션 complexping 으로 구성됩니다. helloping 과 같은 키워드를 입력하면 complexpong이 처리하고 응답은 표준 출력으로 인쇄됩니다.

예제 실행하기

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

실행하려면 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

예제 프로젝트 @ 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.