En esta página

Ping Pong D-Bus

Demuestra un sencillo sistema de mensajes utilizando D-Bus.

Ping Pong es un ejemplo de línea de comandos que demuestra los fundamentos de Qt D-Bus. Se envía un mensaje a otra aplicación y hay una confirmación del mensaje.

Ejecutar el ejemplo

Para ejecutar el ejemplo desde Qt Creator, abra el modo Welcome y seleccione el ejemplo de Examples. Para más información, consulte Qt Creator: Tutorial: Construir y ejecutar.

Ejecute la aplicación pong y ejecute la aplicación ping con el mensaje como argumento.

$ ./pong &
$ ./ping Hello
Reply was: ping("Hello") got called

Proyecto de ejemplo @ code.qt.io

© 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.