Ping-pong complejo con D-Bus
Muestra el uso del sistema de tipos « Qt D-Bus ».
El ejemplo «Ping Pong complejo» muestra el uso del Qt D-Bus sistema de tipos con QDBusVariant y QDBusReply. El ejemplo consta de la aplicación principal complexping, que inicia la otra aplicación, complexpong. La introducción de palabras clave como hello y ping la gestiona complexpong y la respuesta se muestra en la salida estándar.
Ejecución del ejemplo
Puedes ejecutar el ejemplo desde:
- Qt Creator
Abre el modo « Welcome » y selecciona el ejemplo en Examples. Para obtener más información, consulta Qt Creator: Tutorial: Compilar y ejecutar.
- Qt Extension for Visual Studio Code
Ejecute el comando « Qt: Open Qt examples » desde Command Palette y seleccione el ejemplo de la lista. Para obtener más información, consulte Qt Extension for Visual Studio Code: Tutorial: Compilar y ejecutar.
Para ejecutarlo, ejecuta la aplicación « 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.