D-Bus Ping Pong

Demonstriert ein einfaches Nachrichtensystem mit D-Bus.

Ping Pong ist ein Kommandozeilenbeispiel, das die Grundlagen von Qt D-Bus. Eine Nachricht wird an eine andere Anwendung gesendet, und es erfolgt eine Bestätigung der Nachricht.

Ausführen des Beispiels

Zum Ausführen des Beispiels von Qt Creatorzu starten, öffnen Sie den Modus Welcome und wählen Sie das Beispiel unter Examples aus. Weitere Informationen finden Sie unter Erstellen und Ausführen eines Beispiels.

Starten Sie die Anwendung pong und führen Sie die Anwendung ping mit der Nachricht als Argument aus.

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

Beispielprojekt @ code.qt.io

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