D-Bus Komplexes Ping Pong
Demonstriert die Verwendung des Qt D-Bus typesystem.
Complex Ping Pong Beispiel demonstriert die Verwendung von Qt D-Bus typesystem mit QDBusVariant und QDBusReply. Das Beispiel besteht aus der Hauptanwendung complexping
, die die andere Anwendung, complexpong
, startet. Die Eingabe von Schlüsselwörtern wie hello
und ping
wird von complexpong verarbeitet und die Antwort wird auf der Standardausgabe ausgegeben.
Ausführen des Beispiels
Zum Ausführen des Beispiels von Qt Creatorauszuführen, öffnen Sie den Modus Welcome und wählen Sie das Beispiel aus Examples. Weitere Informationen finden Sie unter Erstellen und Ausführen eines Beispiels.
Zum Ausführen führen Sie die Anwendung complexping
aus.
$ ./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
© 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.