En esta página

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:

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

Proyecto de ejemplo en 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.