Ping-pong con D-Bus
Muestra un sencillo sistema de mensajes que utiliza D-Bus.
Ping Pong es un ejemplo de línea de comandos que muestra los conceptos básicos de Qt D-Bus. Se envía un mensaje a otra aplicación y se recibe una confirmación del mismo.
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.
Ejecuta la aplicación « pong » y ejecuta la aplicación « ping » con el mensaje como argumento.
$ ./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.