D-Bus 복합 핑퐁
Qt D-Bus 타입 시스템의 사용법을 보여줍니다.
복잡한 핑퐁 예제는 Qt D-BusQDBusVariant 및 QDBusReply 와 함께 타입 시스템을 사용하는 방법을 보여줍니다. 이 예제는 다른 애플리케이션인 complexpong 를 시작하는 메인 애플리케이션 complexping 로 구성되어 있습니다. hello 및 ping 와 같은 키워드를 입력하면 complexpong에서 이를 처리하며, 응답은 표준 출력으로 출력됩니다.
예제 실행
다음 경로에서 예제를 실행할 수 있습니다:
- Qt Creator
Welcome 모드를 열고 Examples 에서 예제를 선택하십시오. 자세한 내용은 Qt Creator: 튜토리얼: 빌드 및 실행을 참조하십시오.
- Qt Extension for Visual Studio Code
Command Palette 에서 Qt: Open Qt examples 명령을 실행하고 목록에서 예제를 선택하십시오. 자세한 내용은 Qt Extension for Visual Studio Code: 튜토리얼: 빌드 및 실행을 참조하십시오.
실행하려면 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© 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.